1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# Makefile.  Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17
18
19
20
21pkgdatadir = $(datadir)/libxml2
22pkglibdir = $(libdir)/libxml2
23pkgincludedir = $(includedir)/libxml2
24am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25install_sh_DATA = $(install_sh) -c -m 644
26install_sh_PROGRAM = $(install_sh) -c
27install_sh_SCRIPT = $(install_sh) -c
28INSTALL_HEADER = $(INSTALL_DATA)
29transform = $(program_transform_name)
30NORMAL_INSTALL = :
31PRE_INSTALL = :
32POST_INSTALL = :
33NORMAL_UNINSTALL = :
34PRE_UNINSTALL = :
35POST_UNINSTALL = :
36build_triplet = mipsel-uclibc-linux-gnu26
37host_triplet = mipsel-uclibc-linux-gnu
38noinst_PROGRAMS = testSchemas$(EXEEXT) testRelax$(EXEEXT) \
39	testSAX$(EXEEXT) testHTML$(EXEEXT) testXPath$(EXEEXT) \
40	testURI$(EXEEXT) testThreads$(EXEEXT) testC14N$(EXEEXT) \
41	testAutomata$(EXEEXT) testRegexp$(EXEEXT) testReader$(EXEEXT) \
42	testapi$(EXEEXT) testModule$(EXEEXT) runtest$(EXEEXT) \
43	runsuite$(EXEEXT) testchar$(EXEEXT) testdict$(EXEEXT) \
44	runxmlconf$(EXEEXT) testrecurse$(EXEEXT)
45bin_PROGRAMS = xmllint$(EXEEXT) xmlcatalog$(EXEEXT)
46subdir = .
47DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
48	$(srcdir)/Makefile.in $(srcdir)/config.h.in \
49	$(srcdir)/libxml-2.0-uninstalled.pc.in \
50	$(srcdir)/libxml-2.0.pc.in $(srcdir)/libxml.spec.in \
51	$(srcdir)/xml2-config.in $(top_srcdir)/configure AUTHORS \
52	COPYING ChangeLog INSTALL NEWS TODO acconfig.h config.guess \
53	config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
54ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
55am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
56	$(top_srcdir)/configure.in
57am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
58	$(ACLOCAL_M4)
59am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
60 configure.lineno config.status.lineno
61mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
62CONFIG_HEADER = config.h
63CONFIG_CLEAN_FILES = libxml2.spec xml2-config libxml-2.0.pc \
64	libxml-2.0-uninstalled.pc
65am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
66am__vpath_adj = case $$p in \
67    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
68    *) f=$$p;; \
69  esac;
70am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
71am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
72	"$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
73	"$(DESTDIR)$(man3dir)" "$(DESTDIR)$(confexecdir)" \
74	"$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"
75libLTLIBRARIES_INSTALL = $(INSTALL)
76LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
77am__DEPENDENCIES_1 =
78libxml2_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
79am__libxml2_la_SOURCES_DIST = SAX.c entities.c encoding.c error.c \
80	parserInternals.c parser.c tree.c hash.c list.c xmlIO.c \
81	xmlmemory.c uri.c valid.c xlink.c HTMLparser.c HTMLtree.c \
82	debugXML.c xpath.c xpointer.c xinclude.c nanohttp.c nanoftp.c \
83	DOCBparser.c catalog.c globals.c threads.c c14n.c xmlstring.c \
84	xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
85	xmlreader.c relaxng.c dict.c SAX2.c xmlwriter.c legacy.c \
86	chvalid.c pattern.c xmlsave.c xmlmodule.c schematron.c \
87	triostr.c trio.c
88am_libxml2_la_OBJECTS = SAX.lo entities.lo \
89	encoding.lo error.lo \
90	parserInternals.lo parser.lo tree.lo \
91	hash.lo list.lo xmlIO.lo xmlmemory.lo \
92	uri.lo valid.lo xlink.lo \
93	HTMLparser.lo HTMLtree.lo debugXML.lo \
94	xpath.lo xpointer.lo xinclude.lo \
95	nanohttp.lo nanoftp.lo DOCBparser.lo \
96	catalog.lo globals.lo threads.lo \
97	c14n.lo xmlstring.lo xmlregexp.lo \
98	xmlschemas.lo xmlschemastypes.lo \
99	xmlunicode.lo xmlreader.lo relaxng.lo \
100	dict.lo SAX2.lo xmlwriter.lo \
101	legacy.lo chvalid.lo pattern.lo \
102	xmlsave.lo xmlmodule.lo schematron.lo
103#am_libxml2_la_OBJECTS = SAX.lo entities.lo \
104#	encoding.lo error.lo \
105#	parserInternals.lo parser.lo tree.lo \
106#	hash.lo list.lo xmlIO.lo xmlmemory.lo \
107#	uri.lo valid.lo xlink.lo HTMLparser.lo \
108#	HTMLtree.lo debugXML.lo xpath.lo \
109#	xpointer.lo xinclude.lo nanohttp.lo \
110#	nanoftp.lo DOCBparser.lo catalog.lo \
111#	globals.lo threads.lo c14n.lo \
112#	xmlstring.lo xmlregexp.lo \
113#	xmlschemas.lo xmlschemastypes.lo \
114#	xmlunicode.lo triostr.lo trio.lo \
115#	xmlreader.lo relaxng.lo dict.lo \
116#	SAX2.lo xmlwriter.lo legacy.lo \
117#	chvalid.lo pattern.lo xmlsave.lo \
118#	xmlmodule.lo schematron.lo
119libxml2_la_OBJECTS = $(am_libxml2_la_OBJECTS)
120libxml2_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
121	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
122	$(libxml2_la_LDFLAGS) $(LDFLAGS) -o $@
123testdso_la_LIBADD =
124am_testdso_la_OBJECTS = testdso.lo
125testdso_la_OBJECTS = $(am_testdso_la_OBJECTS)
126testdso_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
127	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
128	$(testdso_la_LDFLAGS) $(LDFLAGS) -o $@
129binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
130PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
131am_runsuite_OBJECTS = runsuite.$(OBJEXT)
132runsuite_OBJECTS = $(am_runsuite_OBJECTS)
133am__DEPENDENCIES_2 = $(top_builddir)/libxml2.la $(am__DEPENDENCIES_1)
134runsuite_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
135	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(runsuite_LDFLAGS) \
136	$(LDFLAGS) -o $@
137am_runtest_OBJECTS = runtest.$(OBJEXT)
138runtest_OBJECTS = $(am_runtest_OBJECTS)
139runtest_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
140	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(runtest_LDFLAGS) \
141	$(LDFLAGS) -o $@
142am_runxmlconf_OBJECTS = runxmlconf.$(OBJEXT)
143runxmlconf_OBJECTS = $(am_runxmlconf_OBJECTS)
144runxmlconf_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
145	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
146	$(runxmlconf_LDFLAGS) $(LDFLAGS) -o $@
147am_testAutomata_OBJECTS = testAutomata.$(OBJEXT)
148testAutomata_OBJECTS = $(am_testAutomata_OBJECTS)
149testAutomata_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
150	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
151	$(testAutomata_LDFLAGS) $(LDFLAGS) -o $@
152am_testC14N_OBJECTS = testC14N.$(OBJEXT)
153testC14N_OBJECTS = $(am_testC14N_OBJECTS)
154testC14N_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
155	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testC14N_LDFLAGS) \
156	$(LDFLAGS) -o $@
157am_testHTML_OBJECTS = testHTML.$(OBJEXT)
158testHTML_OBJECTS = $(am_testHTML_OBJECTS)
159testHTML_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
160	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testHTML_LDFLAGS) \
161	$(LDFLAGS) -o $@
162am_testModule_OBJECTS = testModule.$(OBJEXT)
163testModule_OBJECTS = $(am_testModule_OBJECTS)
164testModule_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
165	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
166	$(testModule_LDFLAGS) $(LDFLAGS) -o $@
167am_testReader_OBJECTS = testReader.$(OBJEXT)
168testReader_OBJECTS = $(am_testReader_OBJECTS)
169testReader_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
170	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
171	$(testReader_LDFLAGS) $(LDFLAGS) -o $@
172am_testRegexp_OBJECTS = testRegexp.$(OBJEXT)
173testRegexp_OBJECTS = $(am_testRegexp_OBJECTS)
174testRegexp_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
175	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
176	$(testRegexp_LDFLAGS) $(LDFLAGS) -o $@
177am_testRelax_OBJECTS = testRelax.$(OBJEXT)
178testRelax_OBJECTS = $(am_testRelax_OBJECTS)
179testRelax_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
180	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
181	$(testRelax_LDFLAGS) $(LDFLAGS) -o $@
182am_testSAX_OBJECTS = testSAX.$(OBJEXT)
183testSAX_OBJECTS = $(am_testSAX_OBJECTS)
184testSAX_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
185	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testSAX_LDFLAGS) \
186	$(LDFLAGS) -o $@
187am_testSchemas_OBJECTS = testSchemas.$(OBJEXT)
188testSchemas_OBJECTS = $(am_testSchemas_OBJECTS)
189testSchemas_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
190	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
191	$(testSchemas_LDFLAGS) $(LDFLAGS) -o $@
192am_testThreads_OBJECTS = testThreads.$(OBJEXT)
193testThreads_OBJECTS = $(am_testThreads_OBJECTS)
194testThreads_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
195	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
196	$(testThreads_LDFLAGS) $(LDFLAGS) -o $@
197am_testURI_OBJECTS = testURI.$(OBJEXT)
198testURI_OBJECTS = $(am_testURI_OBJECTS)
199testURI_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
200	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testURI_LDFLAGS) \
201	$(LDFLAGS) -o $@
202am_testXPath_OBJECTS = testXPath.$(OBJEXT)
203testXPath_OBJECTS = $(am_testXPath_OBJECTS)
204testXPath_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
205	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
206	$(testXPath_LDFLAGS) $(LDFLAGS) -o $@
207am_testapi_OBJECTS = testapi.$(OBJEXT)
208testapi_OBJECTS = $(am_testapi_OBJECTS)
209testapi_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
210	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testapi_LDFLAGS) \
211	$(LDFLAGS) -o $@
212am_testchar_OBJECTS = testchar.$(OBJEXT)
213testchar_OBJECTS = $(am_testchar_OBJECTS)
214testchar_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
215	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testchar_LDFLAGS) \
216	$(LDFLAGS) -o $@
217am_testdict_OBJECTS = testdict.$(OBJEXT)
218testdict_OBJECTS = $(am_testdict_OBJECTS)
219testdict_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
220	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testdict_LDFLAGS) \
221	$(LDFLAGS) -o $@
222am_testrecurse_OBJECTS = testrecurse.$(OBJEXT)
223testrecurse_OBJECTS = $(am_testrecurse_OBJECTS)
224testrecurse_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
225	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
226	$(testrecurse_LDFLAGS) $(LDFLAGS) -o $@
227am_xmlcatalog_OBJECTS = xmlcatalog.$(OBJEXT)
228xmlcatalog_OBJECTS = $(am_xmlcatalog_OBJECTS)
229xmlcatalog_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
230	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
231	$(xmlcatalog_LDFLAGS) $(LDFLAGS) -o $@
232am_xmllint_OBJECTS = xmllint.$(OBJEXT)
233xmllint_OBJECTS = $(am_xmllint_OBJECTS)
234xmllint_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
235	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(xmllint_LDFLAGS) \
236	$(LDFLAGS) -o $@
237binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
238SCRIPTS = $(bin_SCRIPTS)
239DEFAULT_INCLUDES = -I.
240depcomp = $(SHELL) $(top_srcdir)/depcomp
241am__depfiles_maybe = depfiles
242COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
243	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
244LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
245	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
246	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
247CCLD = $(CC)
248LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
249	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
250	$(LDFLAGS) -o $@
251SOURCES = $(libxml2_la_SOURCES) $(testdso_la_SOURCES) \
252	$(runsuite_SOURCES) $(runtest_SOURCES) $(runxmlconf_SOURCES) \
253	$(testAutomata_SOURCES) $(testC14N_SOURCES) \
254	$(testHTML_SOURCES) $(testModule_SOURCES) \
255	$(testReader_SOURCES) $(testRegexp_SOURCES) \
256	$(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \
257	$(testThreads_SOURCES) $(testURI_SOURCES) $(testXPath_SOURCES) \
258	$(testapi_SOURCES) $(testchar_SOURCES) $(testdict_SOURCES) \
259	$(testrecurse_SOURCES) $(xmlcatalog_SOURCES) \
260	$(xmllint_SOURCES)
261DIST_SOURCES = $(am__libxml2_la_SOURCES_DIST) $(testdso_la_SOURCES) \
262	$(runsuite_SOURCES) $(runtest_SOURCES) $(runxmlconf_SOURCES) \
263	$(testAutomata_SOURCES) $(testC14N_SOURCES) \
264	$(testHTML_SOURCES) $(testModule_SOURCES) \
265	$(testReader_SOURCES) $(testRegexp_SOURCES) \
266	$(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \
267	$(testThreads_SOURCES) $(testURI_SOURCES) $(testXPath_SOURCES) \
268	$(testapi_SOURCES) $(testchar_SOURCES) $(testdict_SOURCES) \
269	$(testrecurse_SOURCES) $(xmlcatalog_SOURCES) \
270	$(xmllint_SOURCES)
271RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
272	html-recursive info-recursive install-data-recursive \
273	install-dvi-recursive install-exec-recursive \
274	install-html-recursive install-info-recursive \
275	install-pdf-recursive install-ps-recursive install-recursive \
276	installcheck-recursive installdirs-recursive pdf-recursive \
277	ps-recursive uninstall-recursive
278man1dir = $(mandir)/man1
279man3dir = $(mandir)/man3
280NROFF = nroff
281MANS = $(man_MANS)
282confexecDATA_INSTALL = $(INSTALL_DATA)
283m4dataDATA_INSTALL = $(INSTALL_DATA)
284pkgconfigDATA_INSTALL = $(INSTALL_DATA)
285DATA = $(confexec_DATA) $(m4data_DATA) $(pkgconfig_DATA)
286RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
287  distclean-recursive maintainer-clean-recursive
288ETAGS = etags
289CTAGS = ctags
290DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
291distdir = $(PACKAGE)-$(VERSION)
292top_distdir = $(distdir)
293am__remove_distdir = \
294  { test ! -d $(distdir) \
295    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
296         && rm -fr $(distdir); }; }
297DIST_ARCHIVES = $(distdir).tar.gz
298GZIP_ENV = --best
299distuninstallcheck_listfiles = find . -type f -print
300distcleancheck_listfiles = find . -type f -print
301ACLOCAL = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run aclocal-1.10
302AMTAR = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run tar
303AR = mipsel-linux-linux26-ar
304AS = as
305AUTOCONF = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run autoconf
306AUTOHEADER = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run autoheader
307AUTOMAKE = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run automake-1.10
308AWK = gawk
309BASE_THREAD_LIBS = -lpthread
310C14N_OBJ = 
311CATALOG_OBJ = 
312CC = mipsel-linux-uclibc-gcc
313CCDEPMODE = depmode=gcc3
314CFLAGS = -Os -I${PKG_INSTALL_DIR}/usr/include -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls
315CPP = mipsel-linux-uclibc-gcc -E
316CPPFLAGS = -I${PKG_INSTALL_DIR}/usr/include
317CXX = mipsel-linux-uclibc-g++
318CXXCPP = mipsel-linux-uclibc-g++ -E
319CXXDEPMODE = depmode=gcc3
320CXXFLAGS = -Os -I${PKG_INSTALL_DIR}/usr/include
321CYGPATH_W = echo
322CYGWIN_EXTRA_LDFLAGS = 
323CYGWIN_EXTRA_PYTHON_LIBADD = 
324DEBUG_OBJ = 
325DEFS = -DHAVE_CONFIG_H
326DEPDIR = .deps
327DLLTOOL = dlltool
328DOCB_OBJ = 
329ECHO = echo
330ECHO_C = 
331ECHO_N = -n
332ECHO_T = 
333EGREP = /bin/grep -E
334EXEEXT = 
335F77 = gfortran
336FFLAGS = -g -O2
337FTP_OBJ = 
338GREP = /bin/grep
339HAVE_ISINF = 
340HAVE_ISNAN = 
341HTML_DIR = $(datadir)/doc/$(PACKAGE)-$(VERSION)/html
342HTML_OBJ = HTMLparser.o HTMLtree.o
343HTTP_OBJ = 
344ICONV_LIBS = 
345INSTALL = /usr/bin/install -c
346INSTALL_DATA = ${INSTALL} -m 644
347INSTALL_PROGRAM = ${INSTALL}
348INSTALL_SCRIPT = ${INSTALL}
349INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
350LDFLAGS = -L${PKG_INSTALL_DIR}/usr/lib
351LIBOBJS = 
352LIBS = 
353LIBTOOL = $(SHELL) $(top_builddir)/libtool
354LIBXML_MAJOR_VERSION = 2
355LIBXML_MICRO_VERSION = 2
356LIBXML_MINOR_VERSION = 7
357LIBXML_VERSION = 2.7.2
358LIBXML_VERSION_EXTRA = 
359LIBXML_VERSION_INFO = 9:2:7
360LIBXML_VERSION_NUMBER = 20702
361LN_S = ln -s
362LTLIBOBJS = 
363MAKEINFO = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run makeinfo
364MKDIR_P = /bin/mkdir -p
365MODULE_EXTENSION = .so
366MODULE_PLATFORM_LIBS = -ldl
367MV = /bin/mv
368M_LIBS = -lm
369OBJDUMP = mipsel-linux-linux26-objdump
370OBJEXT = o
371PACKAGE = libxml2
372PACKAGE_BUGREPORT = 
373PACKAGE_NAME = 
374PACKAGE_STRING = 
375PACKAGE_TARNAME = 
376PACKAGE_VERSION = 
377PATH_SEPARATOR = :
378PERL = /usr/bin/perl
379PYTHON = 
380PYTHON_INCLUDES = 
381PYTHON_SITE_PACKAGES = 
382PYTHON_SUBDIR = 
383PYTHON_TESTS = 
384PYTHON_VERSION = 
385RANLIB = mipsel-linux-linux26-ranlib
386RDL_LIBS = 
387READER_TEST = Readertests
388RELDATE = Fri Dec  9 2011
389RM = /bin/rm
390SED = /bin/sed
391SET_MAKE = 
392SHELL = /bin/sh
393STATIC_BINARIES = 
394STRIP = mipsel-linux-linux26-strip
395TAR = /bin/tar
396TEST_C14N = 
397TEST_CATALOG = 
398TEST_DEBUG = 
399TEST_HTML = HTMLtests
400TEST_MODULES = ModuleTests
401TEST_PATTERN = Patterntests
402TEST_PHTML = HTMLPushtests
403TEST_PUSH = XMLPushtests
404TEST_REGEXPS = Regexptests Automatatests
405TEST_SAX = SAXtests
406TEST_SCHEMAS = Schemastests Relaxtests
407TEST_SCHEMATRON = Schematrontests
408TEST_THREADS = Threadtests
409TEST_VALID = Validtests
410TEST_VTIME = VTimingtests
411TEST_XINCLUDE = XIncludetests
412TEST_XPATH = XPathtests
413TEST_XPTR = XPtrtests
414THREADS_W32 = 
415THREAD_CFLAGS =  -D_REENTRANT
416THREAD_LIBS = 
417U = 
418VERSION = 2.7.2
419WGET = /usr/bin/wget
420WIN32_EXTRA_LDFLAGS = 
421WIN32_EXTRA_LIBADD = 
422WITH_C14N = 0
423WITH_CATALOG = 0
424WITH_DEBUG = 0
425WITH_DOCB = 0
426WITH_FTP = 0
427WITH_HTML = 1
428WITH_HTTP = 0
429WITH_ICONV = 0
430WITH_ISO8859X = 0
431WITH_LEGACY = 0
432WITH_MEM_DEBUG = 0
433WITH_MODULES = 1
434WITH_OUTPUT = 1
435WITH_PATTERN = 1
436WITH_PUSH = 1
437WITH_READER = 1
438WITH_REGEXPS = 1
439WITH_RUN_DEBUG = 0
440WITH_SAX1 = 1
441WITH_SCHEMAS = 1
442WITH_SCHEMATRON = 1
443WITH_THREADS = 1
444WITH_TREE = 1
445WITH_TRIO = 0
446WITH_VALID = 1
447WITH_WRITER = 1
448WITH_XINCLUDE = 1
449WITH_XPATH = 1
450WITH_XPTR = 1
451WITH_ZLIB = 1
452XINCLUDE_OBJ = xinclude.o
453XMLLINT = /usr/bin/xmllint
454XML_CFLAGS = 
455XML_INCLUDEDIR = -I${includedir}/libxml2
456XML_LIBDIR = -L${libdir}
457XML_LIBS = -lxml2 -lz   -lm 
458XML_LIBTOOLLIBS = libxml2.la
459XPATH_OBJ = xpath.o
460XPTR_OBJ = xpointer.o
461XSLTPROC = /usr/bin/xsltproc
462Z_CFLAGS = 
463Z_LIBS = -lz
464abs_builddir = ${TIMEMACHINE_PATH}/libxml2-2.7.2
465abs_srcdir = ${TIMEMACHINE_PATH}/libxml2-2.7.2
466abs_top_builddir = ${TIMEMACHINE_PATH}/libxml2-2.7.2
467abs_top_srcdir = ${TIMEMACHINE_PATH}/libxml2-2.7.2
468ac_ct_CC = 
469ac_ct_CXX = 
470ac_ct_F77 = gfortran
471am__include = include
472am__leading_dot = .
473am__quote = 
474am__tar = ${AMTAR} chof - "$$tardir"
475am__untar = ${AMTAR} xf -
476bindir = /usr/bin
477build = mipsel-uclibc-linux-gnu26
478build_alias = mipsel-uclibc-linux-gnu26
479build_cpu = mipsel
480build_os = linux-gnu26
481build_vendor = uclibc
482builddir = .
483datadir = /usr/share
484datarootdir = ${prefix}/share
485docdir = ${datarootdir}/doc/${PACKAGE}
486dvidir = ${docdir}
487exec_prefix = /usr
488host = mipsel-uclibc-linux-gnu
489host_alias = mipsel-uclibc-linux
490host_cpu = mipsel
491host_os = linux-gnu
492host_vendor = uclibc
493htmldir = ${docdir}
494includedir = ${prefix}/include
495infodir = /usr/info
496install_sh = $(SHELL) ${TIMEMACHINE_PATH}/libxml2-2.7.2/install-sh
497libdir = ${exec_prefix}/lib
498libexecdir = /usr/lib
499localedir = ${datarootdir}/locale
500localstatedir = /var
501mandir = /usr/man
502mkdir_p = /bin/mkdir -p
503oldincludedir = /usr/include
504pdfdir = ${docdir}
505prefix = /usr
506program_transform_name = s&$$&&;s&^&&
507psdir = ${docdir}
508pythondir = 
509sbindir = /usr/sbin
510sharedstatedir = ${prefix}/com
511srcdir = .
512sysconfdir = /etc
513target_alias = mipsel-uclibc-linux-gnu26
514top_builddir = .
515top_srcdir = .
516SUBDIRS = include . doc example xstc 
517DIST_SUBDIRS = include . doc example python xstc
518INCLUDES = -I$(top_builddir)/include -I./include  -D_REENTRANT  
519bin_SCRIPTS = xml2-config
520lib_LTLIBRARIES = libxml2.la
521libxml2_la_LIBADD =  -lz $(ICONV_LIBS) -lm 
522libxml2_la_LDFLAGS =   -version-info 9:2:7 -ldl
523libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c  \
524		parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c  \
525		valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c  \
526		xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
527		catalog.c globals.c threads.c c14n.c xmlstring.c \
528		xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
529		xmlreader.c relaxng.c dict.c SAX2.c \
530		xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \
531		xmlmodule.c schematron.c
532
533#libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c  \
534#		parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c  \
535#		valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c  \
536#		xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
537#		catalog.c globals.c threads.c c14n.c xmlstring.c \
538#		xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
539#		triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c \
540#		xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \
541#		xmlmodule.c schematron.c
542
543DEPS = $(top_builddir)/libxml2.la
544LDADDS =  $(top_builddir)/libxml2.la  -lz $(ICONV_LIBS) -lm 
545man_MANS = xml2-config.1 libxml.3
546m4datadir = $(datadir)/aclocal
547m4data_DATA = libxml.m4
548runtest_SOURCES = runtest.c
549runtest_LDFLAGS = 
550runtest_DEPENDENCIES = $(DEPS)
551runtest_LDADD = -lpthread  $(LDADDS)
552testrecurse_SOURCES = testrecurse.c
553testrecurse_LDFLAGS = 
554testrecurse_DEPENDENCIES = $(DEPS)
555testrecurse_LDADD = -lpthread  $(LDADDS)
556testchar_SOURCES = testchar.c
557testchar_LDFLAGS = 
558testchar_DEPENDENCIES = $(DEPS)
559testchar_LDADD =  $(LDADDS)
560testdict_SOURCES = testdict.c
561testdict_LDFLAGS = 
562testdict_DEPENDENCIES = $(DEPS)
563testdict_LDADD =  $(LDADDS)
564runsuite_SOURCES = runsuite.c
565runsuite_LDFLAGS = 
566runsuite_DEPENDENCIES = $(DEPS)
567runsuite_LDADD =  $(LDADDS)
568xmllint_SOURCES = xmllint.c
569xmllint_LDFLAGS = 
570xmllint_DEPENDENCIES = $(DEPS)
571xmllint_LDADD =  $(LDADDS)
572testSAX_SOURCES = testSAX.c
573testSAX_LDFLAGS = 
574testSAX_DEPENDENCIES = $(DEPS)
575testSAX_LDADD = $(LDADDS)
576testHTML_SOURCES = testHTML.c
577testHTML_LDFLAGS = 
578testHTML_DEPENDENCIES = $(DEPS)
579testHTML_LDADD = $(LDADDS)
580xmlcatalog_SOURCES = xmlcatalog.c
581xmlcatalog_LDFLAGS = 
582xmlcatalog_DEPENDENCIES = $(DEPS)
583xmlcatalog_LDADD =  $(LDADDS)
584testXPath_SOURCES = testXPath.c
585testXPath_LDFLAGS = 
586testXPath_DEPENDENCIES = $(DEPS)
587testXPath_LDADD = $(LDADDS)
588testC14N_SOURCES = testC14N.c
589testC14N_LDFLAGS = 
590testC14N_DEPENDENCIES = $(DEPS)
591testC14N_LDADD = $(LDADDS)
592testThreads_SOURCES = testThreads.c
593testThreads_LDFLAGS = 
594testThreads_DEPENDENCIES = $(DEPS)
595testThreads_LDADD = -lpthread  $(LDADDS)
596testURI_SOURCES = testURI.c
597testURI_LDFLAGS = 
598testURI_DEPENDENCIES = $(DEPS)
599testURI_LDADD = $(LDADDS)
600testRegexp_SOURCES = testRegexp.c
601testRegexp_LDFLAGS = 
602testRegexp_DEPENDENCIES = $(DEPS)
603testRegexp_LDADD = $(LDADDS)
604testAutomata_SOURCES = testAutomata.c
605testAutomata_LDFLAGS = 
606testAutomata_DEPENDENCIES = $(DEPS)
607testAutomata_LDADD = $(LDADDS)
608testSchemas_SOURCES = testSchemas.c
609testSchemas_LDFLAGS = 
610testSchemas_DEPENDENCIES = $(DEPS)
611testSchemas_LDADD = $(LDADDS)
612testRelax_SOURCES = testRelax.c
613testRelax_LDFLAGS = 
614testRelax_DEPENDENCIES = $(DEPS)
615testRelax_LDADD = $(LDADDS)
616testReader_SOURCES = testReader.c
617testReader_LDFLAGS = 
618testReader_DEPENDENCIES = $(DEPS)
619testReader_LDADD = $(LDADDS)
620testModule_SOURCES = testModule.c
621testModule_LDFLAGS = 
622testModule_DEPENDENCIES = $(DEPS)
623testModule_LDADD = $(LDADDS)
624noinst_LTLIBRARIES = testdso.la
625testdso_la_SOURCES = testdso.c
626testdso_la_LDFLAGS = -module -rpath $(libdir)
627testapi_SOURCES = testapi.c
628testapi_LDFLAGS = 
629testapi_DEPENDENCIES = $(DEPS)
630testapi_LDADD = $(LDADDS)
631runxmlconf_SOURCES = runxmlconf.c
632runxmlconf_LDFLAGS = 
633runxmlconf_DEPENDENCIES = $(DEPS)
634runxmlconf_LDADD = $(LDADDS)
635CLEANFILES = xml2Conf.sh *.gcda *.gcno
636confexecdir = $(libdir)
637confexec_DATA = xml2Conf.sh
638CVS_EXTRA_DIST = 
639EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \
640             libxml.m4 Copyright check-xml-test-suite.py gentest.py \
641	     check-relaxng-test-suite.py check-relaxng-test-suite2.py \
642	     check-xsddata-test-suite.py check-xinclude-test-suite.py \
643             example/Makefile.am example/gjobread.c example/gjobs.xml \
644	     $(man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \
645	     trionan.c trionan.h triostr.c triostr.h trio.c trio.h \
646	     triop.h triodef.h libxml.h elfgcchack.h \
647	     testThreadsWin32.c genUnicode.py TODO_SCHEMAS \
648	     dbgen.pl dbgenattr.pl regressions.py regressions.xml \
649	     README.tests Makefile.tests \
650	     $(CVS_EXTRA_DIST)
651
652pkgconfigdir = $(libdir)/pkgconfig
653pkgconfig_DATA = libxml-2.0.pc
654
655#
656# Install the tests program sources as examples 
657#
658BASE_DIR = $(datadir)/doc
659DOC_MODULE = libxml2-$(VERSION)
660EXAMPLES_DIR = $(BASE_DIR)/$(DOC_MODULE)/examples
661
662#
663# Coverage support, largely borrowed from libvirt
664# Both binaries comes from the lcov package in Fedora
665#
666LCOV = /usr/bin/lcov
667GENHTML = /usr/bin/genhtml
668all: config.h
669	$(MAKE) $(AM_MAKEFLAGS) all-recursive
670
671.SUFFIXES:
672.SUFFIXES: .c .lo .o .obj
673am--refresh:
674	@:
675$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
676	@for dep in $?; do \
677	  case '$(am__configure_deps)' in \
678	    *$$dep*) \
679	      echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
680	      cd $(srcdir) && $(AUTOMAKE) --gnu  \
681		&& exit 0; \
682	      exit 1;; \
683	  esac; \
684	done; \
685	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
686	cd $(top_srcdir) && \
687	  $(AUTOMAKE) --gnu  Makefile
688.PRECIOUS: Makefile
689Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
690	@case '$?' in \
691	  *config.status*) \
692	    echo ' $(SHELL) ./config.status'; \
693	    $(SHELL) ./config.status;; \
694	  *) \
695	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
696	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
697	esac;
698
699$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
700	$(SHELL) ./config.status --recheck
701
702$(top_srcdir)/configure:  $(am__configure_deps)
703	cd $(srcdir) && $(AUTOCONF)
704$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
705	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
706
707config.h: stamp-h1
708	@if test ! -f $@; then \
709	  rm -f stamp-h1; \
710	  $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
711	else :; fi
712
713stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
714	@rm -f stamp-h1
715	cd $(top_builddir) && $(SHELL) ./config.status config.h
716$(srcdir)/config.h.in:  $(am__configure_deps) $(top_srcdir)/acconfig.h
717	cd $(top_srcdir) && $(AUTOHEADER)
718	rm -f stamp-h1
719	touch $@
720
721distclean-hdr:
722	-rm -f config.h stamp-h1
723libxml2.spec: $(top_builddir)/config.status $(srcdir)/libxml.spec.in
724	cd $(top_builddir) && $(SHELL) ./config.status $@
725xml2-config: $(top_builddir)/config.status $(srcdir)/xml2-config.in
726	cd $(top_builddir) && $(SHELL) ./config.status $@
727libxml-2.0.pc: $(top_builddir)/config.status $(srcdir)/libxml-2.0.pc.in
728	cd $(top_builddir) && $(SHELL) ./config.status $@
729libxml-2.0-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/libxml-2.0-uninstalled.pc.in
730	cd $(top_builddir) && $(SHELL) ./config.status $@
731install-libLTLIBRARIES: $(lib_LTLIBRARIES)
732	@$(NORMAL_INSTALL)
733	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
734	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
735	  if test -f $$p; then \
736	    f=$(am__strip_dir) \
737	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
738	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
739	  else :; fi; \
740	done
741
742uninstall-libLTLIBRARIES:
743	@$(NORMAL_UNINSTALL)
744	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
745	  p=$(am__strip_dir) \
746	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
747	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
748	done
749
750clean-libLTLIBRARIES:
751	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
752	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
753	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
754	  test "$$dir" != "$$p" || dir=.; \
755	  echo "rm -f \"$${dir}/so_locations\""; \
756	  rm -f "$${dir}/so_locations"; \
757	done
758
759clean-noinstLTLIBRARIES:
760	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
761	@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
762	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
763	  test "$$dir" != "$$p" || dir=.; \
764	  echo "rm -f \"$${dir}/so_locations\""; \
765	  rm -f "$${dir}/so_locations"; \
766	done
767libxml2.la: $(libxml2_la_OBJECTS) $(libxml2_la_DEPENDENCIES) 
768	$(libxml2_la_LINK) -rpath $(libdir) $(libxml2_la_OBJECTS) $(libxml2_la_LIBADD) $(LIBS)
769testdso.la: $(testdso_la_OBJECTS) $(testdso_la_DEPENDENCIES) 
770	$(testdso_la_LINK)  $(testdso_la_OBJECTS) $(testdso_la_LIBADD) $(LIBS)
771install-binPROGRAMS: $(bin_PROGRAMS)
772	@$(NORMAL_INSTALL)
773	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
774	@list='$(bin_PROGRAMS)'; for p in $$list; do \
775	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
776	  if test -f $$p \
777	     || test -f $$p1 \
778	  ; then \
779	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
780	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
781	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
782	  else :; fi; \
783	done
784
785uninstall-binPROGRAMS:
786	@$(NORMAL_UNINSTALL)
787	@list='$(bin_PROGRAMS)'; for p in $$list; do \
788	  f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
789	  echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
790	  rm -f "$(DESTDIR)$(bindir)/$$f"; \
791	done
792
793clean-binPROGRAMS:
794	@list='$(bin_PROGRAMS)'; for p in $$list; do \
795	  f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
796	  echo " rm -f $$p $$f"; \
797	  rm -f $$p $$f ; \
798	done
799
800clean-noinstPROGRAMS:
801	@list='$(noinst_PROGRAMS)'; for p in $$list; do \
802	  f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
803	  echo " rm -f $$p $$f"; \
804	  rm -f $$p $$f ; \
805	done
806runsuite$(EXEEXT): $(runsuite_OBJECTS) $(runsuite_DEPENDENCIES) 
807	@rm -f runsuite$(EXEEXT)
808	$(runsuite_LINK) $(runsuite_OBJECTS) $(runsuite_LDADD) $(LIBS)
809runtest$(EXEEXT): $(runtest_OBJECTS) $(runtest_DEPENDENCIES) 
810	@rm -f runtest$(EXEEXT)
811	$(runtest_LINK) $(runtest_OBJECTS) $(runtest_LDADD) $(LIBS)
812runxmlconf$(EXEEXT): $(runxmlconf_OBJECTS) $(runxmlconf_DEPENDENCIES) 
813	@rm -f runxmlconf$(EXEEXT)
814	$(runxmlconf_LINK) $(runxmlconf_OBJECTS) $(runxmlconf_LDADD) $(LIBS)
815testAutomata$(EXEEXT): $(testAutomata_OBJECTS) $(testAutomata_DEPENDENCIES) 
816	@rm -f testAutomata$(EXEEXT)
817	$(testAutomata_LINK) $(testAutomata_OBJECTS) $(testAutomata_LDADD) $(LIBS)
818testC14N$(EXEEXT): $(testC14N_OBJECTS) $(testC14N_DEPENDENCIES) 
819	@rm -f testC14N$(EXEEXT)
820	$(testC14N_LINK) $(testC14N_OBJECTS) $(testC14N_LDADD) $(LIBS)
821testHTML$(EXEEXT): $(testHTML_OBJECTS) $(testHTML_DEPENDENCIES) 
822	@rm -f testHTML$(EXEEXT)
823	$(testHTML_LINK) $(testHTML_OBJECTS) $(testHTML_LDADD) $(LIBS)
824testModule$(EXEEXT): $(testModule_OBJECTS) $(testModule_DEPENDENCIES) 
825	@rm -f testModule$(EXEEXT)
826	$(testModule_LINK) $(testModule_OBJECTS) $(testModule_LDADD) $(LIBS)
827testReader$(EXEEXT): $(testReader_OBJECTS) $(testReader_DEPENDENCIES) 
828	@rm -f testReader$(EXEEXT)
829	$(testReader_LINK) $(testReader_OBJECTS) $(testReader_LDADD) $(LIBS)
830testRegexp$(EXEEXT): $(testRegexp_OBJECTS) $(testRegexp_DEPENDENCIES) 
831	@rm -f testRegexp$(EXEEXT)
832	$(testRegexp_LINK) $(testRegexp_OBJECTS) $(testRegexp_LDADD) $(LIBS)
833testRelax$(EXEEXT): $(testRelax_OBJECTS) $(testRelax_DEPENDENCIES) 
834	@rm -f testRelax$(EXEEXT)
835	$(testRelax_LINK) $(testRelax_OBJECTS) $(testRelax_LDADD) $(LIBS)
836testSAX$(EXEEXT): $(testSAX_OBJECTS) $(testSAX_DEPENDENCIES) 
837	@rm -f testSAX$(EXEEXT)
838	$(testSAX_LINK) $(testSAX_OBJECTS) $(testSAX_LDADD) $(LIBS)
839testSchemas$(EXEEXT): $(testSchemas_OBJECTS) $(testSchemas_DEPENDENCIES) 
840	@rm -f testSchemas$(EXEEXT)
841	$(testSchemas_LINK) $(testSchemas_OBJECTS) $(testSchemas_LDADD) $(LIBS)
842testThreads$(EXEEXT): $(testThreads_OBJECTS) $(testThreads_DEPENDENCIES) 
843	@rm -f testThreads$(EXEEXT)
844	$(testThreads_LINK) $(testThreads_OBJECTS) $(testThreads_LDADD) $(LIBS)
845testURI$(EXEEXT): $(testURI_OBJECTS) $(testURI_DEPENDENCIES) 
846	@rm -f testURI$(EXEEXT)
847	$(testURI_LINK) $(testURI_OBJECTS) $(testURI_LDADD) $(LIBS)
848testXPath$(EXEEXT): $(testXPath_OBJECTS) $(testXPath_DEPENDENCIES) 
849	@rm -f testXPath$(EXEEXT)
850	$(testXPath_LINK) $(testXPath_OBJECTS) $(testXPath_LDADD) $(LIBS)
851testapi$(EXEEXT): $(testapi_OBJECTS) $(testapi_DEPENDENCIES) 
852	@rm -f testapi$(EXEEXT)
853	$(testapi_LINK) $(testapi_OBJECTS) $(testapi_LDADD) $(LIBS)
854testchar$(EXEEXT): $(testchar_OBJECTS) $(testchar_DEPENDENCIES) 
855	@rm -f testchar$(EXEEXT)
856	$(testchar_LINK) $(testchar_OBJECTS) $(testchar_LDADD) $(LIBS)
857testdict$(EXEEXT): $(testdict_OBJECTS) $(testdict_DEPENDENCIES) 
858	@rm -f testdict$(EXEEXT)
859	$(testdict_LINK) $(testdict_OBJECTS) $(testdict_LDADD) $(LIBS)
860testrecurse$(EXEEXT): $(testrecurse_OBJECTS) $(testrecurse_DEPENDENCIES) 
861	@rm -f testrecurse$(EXEEXT)
862	$(testrecurse_LINK) $(testrecurse_OBJECTS) $(testrecurse_LDADD) $(LIBS)
863xmlcatalog$(EXEEXT): $(xmlcatalog_OBJECTS) $(xmlcatalog_DEPENDENCIES) 
864	@rm -f xmlcatalog$(EXEEXT)
865	$(xmlcatalog_LINK) $(xmlcatalog_OBJECTS) $(xmlcatalog_LDADD) $(LIBS)
866xmllint$(EXEEXT): $(xmllint_OBJECTS) $(xmllint_DEPENDENCIES) 
867	@rm -f xmllint$(EXEEXT)
868	$(xmllint_LINK) $(xmllint_OBJECTS) $(xmllint_LDADD) $(LIBS)
869install-binSCRIPTS: $(bin_SCRIPTS)
870	@$(NORMAL_INSTALL)
871	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
872	@list='$(bin_SCRIPTS)'; for p in $$list; do \
873	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
874	  if test -f $$d$$p; then \
875	    f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
876	    echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
877	    $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
878	  else :; fi; \
879	done
880
881uninstall-binSCRIPTS:
882	@$(NORMAL_UNINSTALL)
883	@list='$(bin_SCRIPTS)'; for p in $$list; do \
884	  f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
885	  echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
886	  rm -f "$(DESTDIR)$(bindir)/$$f"; \
887	done
888
889mostlyclean-compile:
890	-rm -f *.$(OBJEXT)
891
892distclean-compile:
893	-rm -f *.tab.c
894
895include ./$(DEPDIR)/DOCBparser.Plo
896include ./$(DEPDIR)/HTMLparser.Plo
897include ./$(DEPDIR)/HTMLtree.Plo
898include ./$(DEPDIR)/SAX.Plo
899include ./$(DEPDIR)/SAX2.Plo
900include ./$(DEPDIR)/c14n.Plo
901include ./$(DEPDIR)/catalog.Plo
902include ./$(DEPDIR)/chvalid.Plo
903include ./$(DEPDIR)/debugXML.Plo
904include ./$(DEPDIR)/dict.Plo
905include ./$(DEPDIR)/encoding.Plo
906include ./$(DEPDIR)/entities.Plo
907include ./$(DEPDIR)/error.Plo
908include ./$(DEPDIR)/globals.Plo
909include ./$(DEPDIR)/hash.Plo
910include ./$(DEPDIR)/legacy.Plo
911include ./$(DEPDIR)/list.Plo
912include ./$(DEPDIR)/nanoftp.Plo
913include ./$(DEPDIR)/nanohttp.Plo
914include ./$(DEPDIR)/parser.Plo
915include ./$(DEPDIR)/parserInternals.Plo
916include ./$(DEPDIR)/pattern.Plo
917include ./$(DEPDIR)/relaxng.Plo
918include ./$(DEPDIR)/runsuite.Po
919include ./$(DEPDIR)/runtest.Po
920include ./$(DEPDIR)/runxmlconf.Po
921include ./$(DEPDIR)/schematron.Plo
922include ./$(DEPDIR)/testAutomata.Po
923include ./$(DEPDIR)/testC14N.Po
924include ./$(DEPDIR)/testHTML.Po
925include ./$(DEPDIR)/testModule.Po
926include ./$(DEPDIR)/testReader.Po
927include ./$(DEPDIR)/testRegexp.Po
928include ./$(DEPDIR)/testRelax.Po
929include ./$(DEPDIR)/testSAX.Po
930include ./$(DEPDIR)/testSchemas.Po
931include ./$(DEPDIR)/testThreads.Po
932include ./$(DEPDIR)/testURI.Po
933include ./$(DEPDIR)/testXPath.Po
934include ./$(DEPDIR)/testapi.Po
935include ./$(DEPDIR)/testchar.Po
936include ./$(DEPDIR)/testdict.Po
937include ./$(DEPDIR)/testdso.Plo
938include ./$(DEPDIR)/testrecurse.Po
939include ./$(DEPDIR)/threads.Plo
940include ./$(DEPDIR)/tree.Plo
941include ./$(DEPDIR)/trio.Plo
942include ./$(DEPDIR)/triostr.Plo
943include ./$(DEPDIR)/uri.Plo
944include ./$(DEPDIR)/valid.Plo
945include ./$(DEPDIR)/xinclude.Plo
946include ./$(DEPDIR)/xlink.Plo
947include ./$(DEPDIR)/xmlIO.Plo
948include ./$(DEPDIR)/xmlcatalog.Po
949include ./$(DEPDIR)/xmllint.Po
950include ./$(DEPDIR)/xmlmemory.Plo
951include ./$(DEPDIR)/xmlmodule.Plo
952include ./$(DEPDIR)/xmlreader.Plo
953include ./$(DEPDIR)/xmlregexp.Plo
954include ./$(DEPDIR)/xmlsave.Plo
955include ./$(DEPDIR)/xmlschemas.Plo
956include ./$(DEPDIR)/xmlschemastypes.Plo
957include ./$(DEPDIR)/xmlstring.Plo
958include ./$(DEPDIR)/xmlunicode.Plo
959include ./$(DEPDIR)/xmlwriter.Plo
960include ./$(DEPDIR)/xpath.Plo
961include ./$(DEPDIR)/xpointer.Plo
962
963.c.o:
964	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
965	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
966#	source='$<' object='$@' libtool=no \
967#	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
968#	$(COMPILE) -c $<
969
970.c.obj:
971	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
972	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
973#	source='$<' object='$@' libtool=no \
974#	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
975#	$(COMPILE) -c `$(CYGPATH_W) '$<'`
976
977.c.lo:
978	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
979	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
980#	source='$<' object='$@' libtool=yes \
981#	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
982#	$(LTCOMPILE) -c -o $@ $<
983
984mostlyclean-libtool:
985	-rm -f *.lo
986
987clean-libtool:
988	-rm -rf .libs _libs
989
990distclean-libtool:
991	-rm -f libtool
992install-man1: $(man1_MANS) $(man_MANS)
993	@$(NORMAL_INSTALL)
994	test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
995	@list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
996	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
997	for i in $$l2; do \
998	  case "$$i" in \
999	    *.1*) list="$$list $$i" ;; \
1000	  esac; \
1001	done; \
1002	for i in $$list; do \
1003	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
1004	  else file=$$i; fi; \
1005	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
1006	  case "$$ext" in \
1007	    1*) ;; \
1008	    *) ext='1' ;; \
1009	  esac; \
1010	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
1011	  inst=`echo $$inst | sed -e 's/^.*\///'`; \
1012	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
1013	  echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
1014	  $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
1015	done
1016uninstall-man1:
1017	@$(NORMAL_UNINSTALL)
1018	@list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
1019	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
1020	for i in $$l2; do \
1021	  case "$$i" in \
1022	    *.1*) list="$$list $$i" ;; \
1023	  esac; \
1024	done; \
1025	for i in $$list; do \
1026	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
1027	  case "$$ext" in \
1028	    1*) ;; \
1029	    *) ext='1' ;; \
1030	  esac; \
1031	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
1032	  inst=`echo $$inst | sed -e 's/^.*\///'`; \
1033	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
1034	  echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
1035	  rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
1036	done
1037install-man3: $(man3_MANS) $(man_MANS)
1038	@$(NORMAL_INSTALL)
1039	test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
1040	@list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
1041	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
1042	for i in $$l2; do \
1043	  case "$$i" in \
1044	    *.3*) list="$$list $$i" ;; \
1045	  esac; \
1046	done; \
1047	for i in $$list; do \
1048	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
1049	  else file=$$i; fi; \
1050	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
1051	  case "$$ext" in \
1052	    3*) ;; \
1053	    *) ext='3' ;; \
1054	  esac; \
1055	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
1056	  inst=`echo $$inst | sed -e 's/^.*\///'`; \
1057	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
1058	  echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
1059	  $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
1060	done
1061uninstall-man3:
1062	@$(NORMAL_UNINSTALL)
1063	@list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
1064	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
1065	for i in $$l2; do \
1066	  case "$$i" in \
1067	    *.3*) list="$$list $$i" ;; \
1068	  esac; \
1069	done; \
1070	for i in $$list; do \
1071	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
1072	  case "$$ext" in \
1073	    3*) ;; \
1074	    *) ext='3' ;; \
1075	  esac; \
1076	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
1077	  inst=`echo $$inst | sed -e 's/^.*\///'`; \
1078	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
1079	  echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
1080	  rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
1081	done
1082install-confexecDATA: $(confexec_DATA)
1083	@$(NORMAL_INSTALL)
1084	test -z "$(confexecdir)" || $(MKDIR_P) "$(DESTDIR)$(confexecdir)"
1085	@list='$(confexec_DATA)'; for p in $$list; do \
1086	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1087	  f=$(am__strip_dir) \
1088	  echo " $(confexecDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(confexecdir)/$$f'"; \
1089	  $(confexecDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(confexecdir)/$$f"; \
1090	done
1091
1092uninstall-confexecDATA:
1093	@$(NORMAL_UNINSTALL)
1094	@list='$(confexec_DATA)'; for p in $$list; do \
1095	  f=$(am__strip_dir) \
1096	  echo " rm -f '$(DESTDIR)$(confexecdir)/$$f'"; \
1097	  rm -f "$(DESTDIR)$(confexecdir)/$$f"; \
1098	done
1099install-m4dataDATA: $(m4data_DATA)
1100	@$(NORMAL_INSTALL)
1101	test -z "$(m4datadir)" || $(MKDIR_P) "$(DESTDIR)$(m4datadir)"
1102	@list='$(m4data_DATA)'; for p in $$list; do \
1103	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1104	  f=$(am__strip_dir) \
1105	  echo " $(m4dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(m4datadir)/$$f'"; \
1106	  $(m4dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(m4datadir)/$$f"; \
1107	done
1108
1109uninstall-m4dataDATA:
1110	@$(NORMAL_UNINSTALL)
1111	@list='$(m4data_DATA)'; for p in $$list; do \
1112	  f=$(am__strip_dir) \
1113	  echo " rm -f '$(DESTDIR)$(m4datadir)/$$f'"; \
1114	  rm -f "$(DESTDIR)$(m4datadir)/$$f"; \
1115	done
1116install-pkgconfigDATA: $(pkgconfig_DATA)
1117	@$(NORMAL_INSTALL)
1118	test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
1119	@list='$(pkgconfig_DATA)'; for p in $$list; do \
1120	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1121	  f=$(am__strip_dir) \
1122	  echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
1123	  $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
1124	done
1125
1126uninstall-pkgconfigDATA:
1127	@$(NORMAL_UNINSTALL)
1128	@list='$(pkgconfig_DATA)'; for p in $$list; do \
1129	  f=$(am__strip_dir) \
1130	  echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
1131	  rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
1132	done
1133
1134# This directory's subdirectories are mostly independent; you can cd
1135# into them and run `make' without going through this Makefile.
1136# To change the values of `make' variables: instead of editing Makefiles,
1137# (1) if the variable is set in `config.status', edit `config.status'
1138#     (which will cause the Makefiles to be regenerated when you run `make');
1139# (2) otherwise, pass the desired values on the `make' command line.
1140$(RECURSIVE_TARGETS):
1141	@failcom='exit 1'; \
1142	for f in x $$MAKEFLAGS; do \
1143	  case $$f in \
1144	    *=* | --[!k]*);; \
1145	    *k*) failcom='fail=yes';; \
1146	  esac; \
1147	done; \
1148	dot_seen=no; \
1149	target=`echo $@ | sed s/-recursive//`; \
1150	list='$(SUBDIRS)'; for subdir in $$list; do \
1151	  echo "Making $$target in $$subdir"; \
1152	  if test "$$subdir" = "."; then \
1153	    dot_seen=yes; \
1154	    local_target="$$target-am"; \
1155	  else \
1156	    local_target="$$target"; \
1157	  fi; \
1158	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1159	  || eval $$failcom; \
1160	done; \
1161	if test "$$dot_seen" = "no"; then \
1162	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
1163	fi; test -z "$$fail"
1164
1165$(RECURSIVE_CLEAN_TARGETS):
1166	@failcom='exit 1'; \
1167	for f in x $$MAKEFLAGS; do \
1168	  case $$f in \
1169	    *=* | --[!k]*);; \
1170	    *k*) failcom='fail=yes';; \
1171	  esac; \
1172	done; \
1173	dot_seen=no; \
1174	case "$@" in \
1175	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
1176	  *) list='$(SUBDIRS)' ;; \
1177	esac; \
1178	rev=''; for subdir in $$list; do \
1179	  if test "$$subdir" = "."; then :; else \
1180	    rev="$$subdir $$rev"; \
1181	  fi; \
1182	done; \
1183	rev="$$rev ."; \
1184	target=`echo $@ | sed s/-recursive//`; \
1185	for subdir in $$rev; do \
1186	  echo "Making $$target in $$subdir"; \
1187	  if test "$$subdir" = "."; then \
1188	    local_target="$$target-am"; \
1189	  else \
1190	    local_target="$$target"; \
1191	  fi; \
1192	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1193	  || eval $$failcom; \
1194	done && test -z "$$fail"
1195tags-recursive:
1196	list='$(SUBDIRS)'; for subdir in $$list; do \
1197	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
1198	done
1199ctags-recursive:
1200	list='$(SUBDIRS)'; for subdir in $$list; do \
1201	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
1202	done
1203
1204ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
1205	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1206	unique=`for i in $$list; do \
1207	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1208	  done | \
1209	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
1210	      END { if (nonempty) { for (i in files) print i; }; }'`; \
1211	mkid -fID $$unique
1212tags: TAGS
1213
1214TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
1215		$(TAGS_FILES) $(LISP)
1216	tags=; \
1217	here=`pwd`; \
1218	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
1219	  include_option=--etags-include; \
1220	  empty_fix=.; \
1221	else \
1222	  include_option=--include; \
1223	  empty_fix=; \
1224	fi; \
1225	list='$(SUBDIRS)'; for subdir in $$list; do \
1226	  if test "$$subdir" = .; then :; else \
1227	    test ! -f $$subdir/TAGS || \
1228	      tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
1229	  fi; \
1230	done; \
1231	list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
1232	unique=`for i in $$list; do \
1233	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1234	  done | \
1235	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1236	      END { if (nonempty) { for (i in files) print i; }; }'`; \
1237	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
1238	  test -n "$$unique" || unique=$$empty_fix; \
1239	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1240	    $$tags $$unique; \
1241	fi
1242ctags: CTAGS
1243CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
1244		$(TAGS_FILES) $(LISP)
1245	tags=; \
1246	list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
1247	unique=`for i in $$list; do \
1248	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1249	  done | \
1250	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1251	      END { if (nonempty) { for (i in files) print i; }; }'`; \
1252	test -z "$(CTAGS_ARGS)$$tags$$unique" \
1253	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1254	     $$tags $$unique
1255
1256GTAGS:
1257	here=`$(am__cd) $(top_builddir) && pwd` \
1258	  && cd $(top_srcdir) \
1259	  && gtags -i $(GTAGS_ARGS) $$here
1260
1261distclean-tags:
1262	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1263
1264distdir: $(DISTFILES)
1265	$(am__remove_distdir)
1266	test -d $(distdir) || mkdir $(distdir)
1267	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1268	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1269	list='$(DISTFILES)'; \
1270	  dist_files=`for file in $$list; do echo $$file; done | \
1271	  sed -e "s|^$$srcdirstrip/||;t" \
1272	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1273	case $$dist_files in \
1274	  */*) $(MKDIR_P) `echo "$$dist_files" | \
1275			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1276			   sort -u` ;; \
1277	esac; \
1278	for file in $$dist_files; do \
1279	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1280	  if test -d $$d/$$file; then \
1281	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1282	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1283	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
1284	    fi; \
1285	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
1286	  else \
1287	    test -f $(distdir)/$$file \
1288	    || cp -p $$d/$$file $(distdir)/$$file \
1289	    || exit 1; \
1290	  fi; \
1291	done
1292	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1293	  if test "$$subdir" = .; then :; else \
1294	    test -d "$(distdir)/$$subdir" \
1295	    || $(MKDIR_P) "$(distdir)/$$subdir" \
1296	    || exit 1; \
1297	    distdir=`$(am__cd) $(distdir) && pwd`; \
1298	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
1299	    (cd $$subdir && \
1300	      $(MAKE) $(AM_MAKEFLAGS) \
1301	        top_distdir="$$top_distdir" \
1302	        distdir="$$distdir/$$subdir" \
1303		am__remove_distdir=: \
1304		am__skip_length_check=: \
1305	        distdir) \
1306	      || exit 1; \
1307	  fi; \
1308	done
1309	$(MAKE) $(AM_MAKEFLAGS) \
1310	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
1311	  dist-hook
1312	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
1313	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1314	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1315	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
1316	|| chmod -R a+r $(distdir)
1317dist-gzip: distdir
1318	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1319	$(am__remove_distdir)
1320
1321dist-bzip2: distdir
1322	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
1323	$(am__remove_distdir)
1324
1325dist-lzma: distdir
1326	tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
1327	$(am__remove_distdir)
1328
1329dist-tarZ: distdir
1330	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1331	$(am__remove_distdir)
1332
1333dist-shar: distdir
1334	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1335	$(am__remove_distdir)
1336
1337dist-zip: distdir
1338	-rm -f $(distdir).zip
1339	zip -rq $(distdir).zip $(distdir)
1340	$(am__remove_distdir)
1341
1342dist dist-all: distdir
1343	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1344	$(am__remove_distdir)
1345
1346# This target untars the dist file and tries a VPATH configuration.  Then
1347# it guarantees that the distribution is self-contained by making another
1348# tarfile.
1349distcheck: dist
1350	case '$(DIST_ARCHIVES)' in \
1351	*.tar.gz*) \
1352	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
1353	*.tar.bz2*) \
1354	  bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
1355	*.tar.lzma*) \
1356	  unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
1357	*.tar.Z*) \
1358	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1359	*.shar.gz*) \
1360	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
1361	*.zip*) \
1362	  unzip $(distdir).zip ;;\
1363	esac
1364	chmod -R a-w $(distdir); chmod a+w $(distdir)
1365	mkdir $(distdir)/_build
1366	mkdir $(distdir)/_inst
1367	chmod a-w $(distdir)
1368	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1369	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1370	  && cd $(distdir)/_build \
1371	  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1372	    $(DISTCHECK_CONFIGURE_FLAGS) \
1373	  && $(MAKE) $(AM_MAKEFLAGS) \
1374	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
1375	  && $(MAKE) $(AM_MAKEFLAGS) check \
1376	  && $(MAKE) $(AM_MAKEFLAGS) install \
1377	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1378	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1379	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1380	        distuninstallcheck \
1381	  && chmod -R a-w "$$dc_install_base" \
1382	  && ({ \
1383	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1384	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1385	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1386	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1387	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1388	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
1389	  && rm -rf "$$dc_destdir" \
1390	  && $(MAKE) $(AM_MAKEFLAGS) dist \
1391	  && rm -rf $(DIST_ARCHIVES) \
1392	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
1393	$(am__remove_distdir)
1394	@(echo "$(distdir) archives ready for distribution: "; \
1395	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1396	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1397distuninstallcheck:
1398	@cd $(distuninstallcheck_dir) \
1399	&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
1400	   || { echo "ERROR: files left after uninstall:" ; \
1401	        if test -n "$(DESTDIR)"; then \
1402	          echo "  (check DESTDIR support)"; \
1403	        fi ; \
1404	        $(distuninstallcheck_listfiles) ; \
1405	        exit 1; } >&2
1406distcleancheck: distclean
1407	@if test '$(srcdir)' = . ; then \
1408	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1409	  exit 1 ; \
1410	fi
1411	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1412	  || { echo "ERROR: files left in build directory after distclean:" ; \
1413	       $(distcleancheck_listfiles) ; \
1414	       exit 1; } >&2
1415check-am: all-am
1416check: check-recursive
1417all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \
1418		config.h
1419install-binPROGRAMS: install-libLTLIBRARIES
1420
1421installdirs: installdirs-recursive
1422installdirs-am:
1423	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(confexecdir)" "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"; do \
1424	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1425	done
1426install: install-recursive
1427install-exec: install-exec-recursive
1428install-data: install-data-recursive
1429uninstall: uninstall-recursive
1430
1431install-am: all-am
1432	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1433
1434installcheck: installcheck-recursive
1435install-strip:
1436	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1437	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1438	  `test -z '$(STRIP)' || \
1439	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1440mostlyclean-generic:
1441
1442clean-generic:
1443	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1444
1445distclean-generic:
1446	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1447
1448maintainer-clean-generic:
1449	@echo "This command is intended for maintainers to use"
1450	@echo "it deletes files that may require special tools to rebuild."
1451clean: clean-recursive
1452
1453clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
1454	clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \
1455	mostlyclean-am
1456
1457distclean: distclean-recursive
1458	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
1459	-rm -rf ./$(DEPDIR)
1460	-rm -f Makefile
1461distclean-am: clean-am distclean-compile distclean-generic \
1462	distclean-hdr distclean-libtool distclean-tags
1463
1464dvi: dvi-recursive
1465
1466dvi-am:
1467
1468html: html-recursive
1469
1470info: info-recursive
1471
1472info-am:
1473
1474install-data-am: install-data-local install-m4dataDATA install-man \
1475	install-pkgconfigDATA
1476
1477install-dvi: install-dvi-recursive
1478
1479install-exec-am: install-binPROGRAMS install-binSCRIPTS \
1480	install-confexecDATA install-libLTLIBRARIES
1481
1482install-html: install-html-recursive
1483
1484install-info: install-info-recursive
1485
1486install-man: install-man1 install-man3
1487
1488install-pdf: install-pdf-recursive
1489
1490install-ps: install-ps-recursive
1491
1492installcheck-am:
1493
1494maintainer-clean: maintainer-clean-recursive
1495	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
1496	-rm -rf $(top_srcdir)/autom4te.cache
1497	-rm -rf ./$(DEPDIR)
1498	-rm -f Makefile
1499maintainer-clean-am: distclean-am maintainer-clean-generic
1500
1501mostlyclean: mostlyclean-recursive
1502
1503mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1504	mostlyclean-libtool
1505
1506pdf: pdf-recursive
1507
1508pdf-am:
1509
1510ps: ps-recursive
1511
1512ps-am:
1513
1514uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
1515	uninstall-confexecDATA uninstall-libLTLIBRARIES \
1516	uninstall-local uninstall-m4dataDATA uninstall-man \
1517	uninstall-pkgconfigDATA
1518
1519uninstall-man: uninstall-man1 uninstall-man3
1520
1521.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
1522	install-strip
1523
1524.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
1525	all all-am am--refresh check check-am clean clean-binPROGRAMS \
1526	clean-generic clean-libLTLIBRARIES clean-libtool \
1527	clean-noinstLTLIBRARIES clean-noinstPROGRAMS ctags \
1528	ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \
1529	dist-lzma dist-shar dist-tarZ dist-zip distcheck distclean \
1530	distclean-compile distclean-generic distclean-hdr \
1531	distclean-libtool distclean-tags distcleancheck distdir \
1532	distuninstallcheck dvi dvi-am html html-am info info-am \
1533	install install-am install-binPROGRAMS install-binSCRIPTS \
1534	install-confexecDATA install-data install-data-am \
1535	install-data-local install-dvi install-dvi-am install-exec \
1536	install-exec-am install-html install-html-am install-info \
1537	install-info-am install-libLTLIBRARIES install-m4dataDATA \
1538	install-man install-man1 install-man3 install-pdf \
1539	install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
1540	install-strip installcheck installcheck-am installdirs \
1541	installdirs-am maintainer-clean maintainer-clean-generic \
1542	mostlyclean mostlyclean-compile mostlyclean-generic \
1543	mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
1544	uninstall uninstall-am uninstall-binPROGRAMS \
1545	uninstall-binSCRIPTS uninstall-confexecDATA \
1546	uninstall-libLTLIBRARIES uninstall-local uninstall-m4dataDATA \
1547	uninstall-man uninstall-man1 uninstall-man3 \
1548	uninstall-pkgconfigDATA
1549
1550
1551# that one forces the rebuild when "make rebuild" is run on doc/
1552rebuild_testapi:
1553	-@(if [ "$(PYTHON)" != "" ] ; then \
1554	    $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
1555
1556# that one is just to make sure it is rebuilt if missing
1557# but adding the dependances generate mess
1558testapi.c: $(srcdir)/gentest.py
1559	-@(if [ "$(PYTHON)" != "" ] ; then \
1560	    $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
1561
1562#testOOM_SOURCES=testOOM.c testOOMlib.h testOOMlib.c
1563#testOOM_LDFLAGS = 
1564#testOOM_DEPENDENCIES = $(DEPS)
1565#testOOM_LDADD= $(LDADDS)
1566
1567runtests:
1568	$(CHECKER) ./runtest$(EXEEXT) && $(CHECKER) ./testrecurse$(EXEEXT) &&$(CHECKER) ./testapi$(EXEEXT) && $(CHECKER) ./testchar$(EXEEXT)&& $(CHECKER) ./testdict$(EXEEXT) && $(CHECKER) ./runxmlconf$(EXEEXT)
1569	@(if [ "" != "" ] ; then cd python ; \
1570	    $(MAKE) MAKEFLAGS+=--silent tests ; fi)
1571
1572check: all runtests
1573
1574check-valgrind: all
1575	@echo '## Running the regression tests under Valgrind'
1576	@echo '## Go get a cup of coffee it is gonna take a while ...'
1577	$(MAKE) CHECKER='valgrind -q' check
1578
1579testall : tests SVGtests SAXtests
1580
1581tests: XMLtests XMLenttests NStests IDtests Errtests APItests Readertests SAXtests XMLPushtests HTMLtests HTMLPushtests  Validtests URItests Patterntests XPathtests XPtrtests XIncludetests    Regexptests Automatatests Schemastests Relaxtests Schematrontests Threadtests Timingtests VTimingtests  ModuleTests
1582	@(if [ "" != "" ] ; then cd python ; \
1583	    $(MAKE) MAKEFLAGS+=--silent tests ; fi)
1584	@(cd doc/examples ; $(MAKE) MAKEFLAGS+=--silent tests)
1585
1586valgrind:
1587	@echo '## Running the regression tests under Valgrind'
1588	@echo '## Go get a cup of coffee it is gonna take a while ...'
1589	$(MAKE) CHECKER='valgrind -q' tests
1590
1591APItests: testapi$(EXEEXT)
1592	@echo "## Running the API regression tests this may take a little while"
1593	-@($(CHECKER) $(top_builddir)/testapi -q)
1594
1595HTMLtests : testHTML$(EXEEXT)
1596	@(echo > .memdump)
1597	@echo "## HTML regression tests"
1598	-@(for i in $(srcdir)/test/HTML/* ; do \
1599	  name=`basename $$i`; \
1600	  if [ ! -d $$i ] ; then \
1601	  if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
1602	      echo New test file $$name ; \
1603	      $(CHECKER) $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
1604	  else \
1605	      log=`$(CHECKER) $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \
1606	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1607	      diff $(srcdir)/result/HTML/$$name result.$$name ; \
1608	      diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \
1609	      $(CHECKER) $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \
1610	      diff result.$$name result2.$$name` ; \
1611	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1612	      rm result.$$name result2.$$name error.$$name ; \
1613	  fi ; fi ; done)
1614
1615HTMLPushtests : testHTML$(EXEEXT)
1616	@echo "## Push HTML regression tests"
1617	-@(for i in $(srcdir)/test/HTML/* ; do \
1618	  name=`basename $$i`; \
1619	  if [ ! -d $$i ] ; then \
1620	  if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
1621	      echo New test file $$name ; \
1622	      $(CHECKER) $(top_builddir)/testHTML --push $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
1623	  else \
1624	      log=`$(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \
1625	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1626	      diff $(srcdir)/result/HTML/$$name result.$$name ; \
1627	      cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \
1628	      cut -b 1-15 error.$$name > errorcut2.$$name; \
1629	      diff -b errorcut.$$name errorcut2.$$name ; \
1630	      $(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \
1631	      diff result.$$name result2.$$name` ; \
1632	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1633	      rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \
1634	  fi ; fi ; done)
1635	@echo "## HTML SAX regression tests"
1636	-@(for i in $(srcdir)/test/HTML/* ; do \
1637	  name=`basename $$i`; \
1638	  if [ ! -d $$i ] ; then \
1639	  if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \
1640	      echo New test file $$name ; \
1641	      $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
1642	  else \
1643	      log=`$(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \
1644	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1645	      diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
1646	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1647	      rm result.$$name.sax ; \
1648	  fi ; fi ; done)
1649	@echo "## Push HTML SAX regression tests"
1650	-@(for i in $(srcdir)/test/HTML/* ; do \
1651	  name=`basename $$i`; \
1652	  if [ ! -d $$i ] ; then \
1653	  if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
1654	      echo New test file $$name ; \
1655	      $(CHECKER) $(top_builddir)/testHTML --push --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
1656	  else \
1657	      log=`$(CHECKER) $(top_builddir)/testHTML --push --sax $$i 2>&1 > result.$$name.sax ; \
1658	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1659	      diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
1660	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1661	      rm result.$$name.sax ; \
1662	  fi ; fi ; done)
1663
1664XMLtests : xmllint$(EXEEXT)
1665	@(echo > .memdump)
1666	@echo "## XML regression tests"
1667	-@(for i in $(srcdir)/test/* ; do \
1668	  name=`basename $$i`; \
1669	  if [ ! -d $$i ] ; then \
1670	  if [ ! -f $(srcdir)/result/$$name ] ; then \
1671	      echo New test file $$name ; \
1672	      $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \
1673	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1674	  else \
1675	      log=`$(CHECKER) $(top_builddir)/xmllint $$i 2>&1 > result.$$name ; \
1676	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1677	      diff $(srcdir)/result/$$name result.$$name ; \
1678	      $(CHECKER) $(top_builddir)/xmllint result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
1679	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1680	      diff result.$$name result2.$$name` ;\
1681	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1682	      rm result.$$name result2.$$name ; \
1683	  fi ; fi ; done)
1684	@echo "## XML regression tests on memory"
1685	-@(for i in $(srcdir)/test/* ; do \
1686	  name=`basename $$i`; \
1687	  if [ ! -d $$i ] ; then \
1688	  if [ ! -f $(srcdir)/result/$$name ] ; then \
1689	      echo New test file $$name ; \
1690	      $(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \
1691	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1692	  else \
1693	      log=`$(CHECKER) $(top_builddir)/xmllint --memory $$i 2>&1 > result.$$name ; \
1694	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1695	      diff $(srcdir)/result/$$name result.$$name ; \
1696	      $(CHECKER) $(top_builddir)/xmllint --memory result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
1697	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"`; \
1698	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1699	      diff result.$$name result2.$$name ; \
1700	      rm result.$$name result2.$$name ; \
1701	  fi ; fi ; done)
1702
1703XMLPushtests: xmllint$(EXEEXT)
1704	@(echo > .memdump)
1705	@echo "## XML push regression tests"
1706	-@(for i in $(srcdir)/test/* ; do \
1707	  name=`basename $$i`; \
1708	  if [ ! -d $$i ] ; then \
1709	  if [ ! -f $(srcdir)/result/$$name ] ; then \
1710	      echo New test file $$name ; \
1711	      $(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \
1712	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1713	  else \
1714	      log=`$(CHECKER) $(top_builddir)/xmllint --push $$i 2>&1 > result.$$name ; \
1715	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1716	      diff $(srcdir)/result/$$name result.$$name ; \
1717	      $(CHECKER) $(top_builddir)/xmllint --push result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
1718	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1719	      diff result.$$name result2.$$name` ; \
1720	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1721	      rm result.$$name result2.$$name ; \
1722	  fi ; fi ; done)
1723
1724NStests : xmllint$(EXEEXT)
1725	@(echo > .memdump)
1726	@echo "## XML Namespaces regression tests"
1727	-@(for i in $(srcdir)/test/namespaces/* ; do \
1728	  name=`basename $$i`; \
1729	  if [ ! -d $$i ] ; then \
1730	  if [ ! -f $(srcdir)/result/namespaces/$$name ] ; then \
1731	      echo New test file $$name ; \
1732	      $(CHECKER) $(top_builddir)/xmllint $$i \
1733	         2> $(srcdir)/result/namespaces/$$name.err \
1734		 > $(srcdir)/result/namespaces/$$name ; \
1735	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1736	  else \
1737	      log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \
1738	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1739	      diff $(srcdir)/result/namespaces/$$name result.$$name ; \
1740	      diff $(srcdir)/result/namespaces/$$name.err error.$$name`; \
1741	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1742	      rm result.$$name error.$$name ; \
1743	  fi ; fi ; done)
1744
1745IDtests : xmllint$(EXEEXT) testXPath$(EXEEXT)
1746	@(echo > .memdump)
1747	@echo "## xml:id regression tests"
1748	-@(for i in $(srcdir)/test/xmlid/id_*.xml ; do \
1749	  name=`basename $$i`; \
1750	  if [ ! -d $$i ] ; then \
1751	  if [ ! -f $(srcdir)/result/xmlid/$$name ] ; then \
1752	      echo New test file $$name ; \
1753	      $(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" \
1754	         2> $(srcdir)/result/xmlid/$$name.err \
1755		 > $(srcdir)/result/xmlid/$$name ; \
1756	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1757	  else \
1758	      log=`$(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" 2> error.$$name > result.$$name ; \
1759	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1760	      diff $(srcdir)/result/xmlid/$$name result.$$name ; \
1761	      diff $(srcdir)/result/xmlid/$$name.err error.$$name` ; \
1762	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1763	      rm result.$$name error.$$name ; \
1764	  fi ; fi ; done)
1765
1766Errtests : xmllint$(EXEEXT)
1767	@(echo > .memdump)
1768	@echo "## Error cases regression tests"
1769	-@(for i in $(srcdir)/test/errors/*.xml ; do \
1770	  name=`basename $$i`; \
1771	  if [ ! -d $$i ] ; then \
1772	  if [ ! -f $(srcdir)/result/errors/$$name ] ; then \
1773	      echo New test file $$name ; \
1774	      $(CHECKER) $(top_builddir)/xmllint $$i \
1775	         2> $(srcdir)/result/errors/$$name.err \
1776		 > $(srcdir)/result/errors/$$name ; \
1777	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1778	  else \
1779	      log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \
1780	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1781	      diff $(srcdir)/result/errors/$$name result.$$name ; \
1782	      diff $(srcdir)/result/errors/$$name.err error.$$name` ; \
1783	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1784	      rm result.$$name error.$$name ; \
1785	  fi ; fi ; done)
1786	@echo "## Error cases stream regression tests"
1787	-@(for i in $(srcdir)/test/errors/*.xml ; do \
1788	  name=`basename $$i`; \
1789	  if [ ! -d $$i ] ; then \
1790	  if [ ! -f $(srcdir)/result/errors/$$name.str ] ; then \
1791	      echo New test file $$name ; \
1792	      $(CHECKER) $(top_builddir)/xmllint --stream $$i \
1793	         2> $(srcdir)/result/errors/$$name.str \
1794		 > /dev/null ; \
1795	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1796	  else \
1797	      log=`$(CHECKER) $(top_builddir)/xmllint --stream $$i 2> error.$$name > /dev/null ; \
1798	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1799	      diff $(srcdir)/result/errors/$$name.str error.$$name` ; \
1800	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1801	      rm error.$$name ; \
1802	  fi ; fi ; done)
1803
1804Docbtests : xmllint$(EXEEXT)
1805
1806XMLenttests : xmllint$(EXEEXT)
1807	@(echo > .memdump)
1808	@echo "## XML entity subst regression tests"
1809	-@(for i in $(srcdir)/test/* ; do \
1810	  name=`basename $$i`; \
1811	  if [ ! -d $$i ] ; then \
1812	  if [ ! -f $(srcdir)/result/noent/$$name ] ; then \
1813	      echo New test file $$name ; \
1814	      $(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \
1815	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1816	  else \
1817	      log=`$(CHECKER) $(top_builddir)/xmllint --noent $$i 2>&1 > result.$$name ; \
1818	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1819	      diff $(srcdir)/result/noent/$$name result.$$name ; \
1820	      $(CHECKER) $(top_builddir)/xmllint --noent result.$$name 2>&1 > result2.$$name ; \
1821	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1822	      diff result.$$name result2.$$name` ; \
1823	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1824	      rm result.$$name result2.$$name ; \
1825	  fi ; fi ; done)
1826
1827URItests : testURI$(EXEEXT)
1828	@(echo > .memdump)
1829	@echo "## URI module regression tests"
1830	-@(for i in $(srcdir)/test/URI/*.data ; do \
1831	  name=`basename $$i`; \
1832	  if [ ! -d $$i ] ; then \
1833	  if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
1834	      echo New test file $$name ; \
1835	      $(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \
1836	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1837	  else \
1838	      log=`$(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i 2>&1 > result.$$name ; \
1839	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1840	      diff $(srcdir)/result/URI/$$name result.$$name` ; \
1841	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1842	      rm result.$$name ; \
1843	  fi ; fi ; done)
1844	-@(for i in $(srcdir)/test/URI/*.uri ; do \
1845	  name=`basename $$i`; \
1846	  if [ ! -d $$i ] ; then \
1847	  if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
1848	      echo New test file $$name ; \
1849	      $(CHECKER) $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \
1850	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1851	  else \
1852	      log=`$(CHECKER) $(top_builddir)/testURI < $$i 2>&1 > result.$$name ; \
1853	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1854	      diff $(srcdir)/result/URI/$$name result.$$name` ; \
1855	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1856	      rm result.$$name ; \
1857	  fi ; fi ; done)
1858
1859XPathtests : testXPath$(EXEEXT)
1860	@(echo > .memdump)
1861	@echo "## XPath regression tests"
1862	-@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
1863	  then echo Skipping debug not compiled in ; exit 0 ; fi ; \
1864	  for i in $(srcdir)/test/XPath/expr/* ; do \
1865	  name=`basename $$i`; \
1866	  if [ ! -d $$i ] ; then \
1867	  if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \
1868	      echo New test file $$name ; \
1869	      $(CHECKER) $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \
1870	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1871	  else \
1872	      log=`$(CHECKER) $(top_builddir)/testXPath -f --expr $$i 2>&1 > result.$$name ; \
1873	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1874	      diff $(srcdir)/result/XPath/expr/$$name result.$$name` ; \
1875	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1876	      rm result.$$name ; \
1877	  fi ; fi ; done ; \
1878	  for i in $(srcdir)/test/XPath/docs/* ; do \
1879	  if [ ! -d $$i ] ; then \
1880	  doc=`basename $$i`; \
1881	  for j in $(srcdir)/test/XPath/tests/$$doc* ; do \
1882	  if [ ! -f $$j ] ; then continue ; fi ; \
1883	  name=`basename $$j`; \
1884	  if [ ! -d $$j ] ; then \
1885	  if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \
1886	      echo New test file $$name ; \
1887	      $(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \
1888	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1889	  else \
1890	      log=`$(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j 2>&1 > result.$$name ; \
1891	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1892	      diff $(srcdir)/result/XPath/tests/$$name result.$$name` ; \
1893	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1894	      rm result.$$name ; \
1895	  fi ; fi ; done ; fi ; done)
1896
1897XPtrtests : testXPath$(EXEEXT)
1898	@(echo > .memdump)
1899	@echo "## XPointer regression tests"
1900	-@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
1901	  then echo Skipping debug not compiled in ; exit 0 ; fi ; \
1902	  for i in $(srcdir)/test/XPath/docs/* ; do \
1903	  if [ ! -d $$i ] ; then \
1904	  doc=`basename $$i`; \
1905	  for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \
1906	  if [ ! -f $$j ] ; then continue ; fi ; \
1907	  name=`basename $$j`; \
1908	  if [ ! -d $$j ] ; then \
1909	  if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \
1910	      echo New test file $$name ; \
1911	      $(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \
1912	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
1913	  else \
1914	      log=`$(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j 2>&1 > result.$$name ; \
1915	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1916	      diff $(srcdir)/result/XPath/xptr/$$name result.$$name` ; \
1917	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1918	      rm result.$$name ; \
1919	  fi ; fi ; done ; fi ; done)
1920
1921XIncludetests : xmllint$(EXEEXT)
1922	@(echo > .memdump)
1923	@echo "## XInclude regression tests"
1924	-@(for i in $(srcdir)/test/XInclude/docs/* ; do \
1925	  name=`basename $$i`; \
1926	  if [ ! -d $$i ] ; then \
1927	  if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
1928	      echo New test file $$name ; \
1929	      $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \
1930	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1931	  else \
1932	      log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > result.$$name 2>error.$$name ; \
1933	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1934	      diff $(srcdir)/result/XInclude/$$name result.$$name ; \
1935	      diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \
1936	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1937	      rm result.$$name error.$$name ; \
1938	  fi ; fi ; done)
1939	-@(for i in $(srcdir)/test/XInclude/docs/* ; do \
1940	  name=`basename $$i`; \
1941	  if [ ! -d $$i ] ; then \
1942	  if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
1943	      echo New test file $$name ; \
1944	      $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \
1945	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1946	  else \
1947	      log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > result.$$name 2>error.$$name ; \
1948	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1949	      diff $(srcdir)/result/XInclude/$$name result.$$name ; \
1950	      diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \
1951	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1952	      rm result.$$name error.$$name ; \
1953	  fi ; fi ; done)
1954	@(echo > .memdump)
1955	@echo "## XInclude xmlReader regression tests"
1956	-@(for i in $(srcdir)/test/XInclude/docs/* ; do \
1957	  name=`basename $$i`; \
1958	  if [ ! -d $$i ] ; then \
1959	  if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \
1960	      echo New test file $$name ; \
1961	      $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \
1962	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1963	  else \
1964	      log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \
1965	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1966	      diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \
1967	      diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \
1968	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1969	      rm result.$$name error.$$name ; \
1970	  fi ; fi ; done)
1971	-@(for i in $(srcdir)/test/XInclude/docs/* ; do \
1972	  name=`basename $$i`; \
1973	  if [ ! -d $$i ] ; then \
1974	  if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \
1975	      echo New test file $$name ; \
1976	      $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \
1977	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1978	  else \
1979	      log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \
1980	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1981	      diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \
1982	      diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \
1983	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1984	      rm result.$$name error.$$name ; \
1985	  fi ; fi ; done)
1986
1987Scripttests : xmllint$(EXEEXT)
1988	@(echo > .memdump)
1989	@echo "## Scripts regression tests"
1990	@echo "## Some of the base computations may be different if srcdir != ."
1991	-@(for i in $(srcdir)/test/scripts/*.script ; do \
1992	  name=`basename $$i .script`; \
1993	  xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \
1994	  if [ -f $$xml ] ; then \
1995	  if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \
1996	      echo New test file $$name ; \
1997	      $(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name 2> $(srcdir)/result/scripts/$$name.err ; \
1998	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
1999	  else \
2000	      log=`$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name 2> result.$$name.err ; \
2001	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2002	      diff $(srcdir)/result/scripts/$$name result.$$name ; \
2003	      diff $(srcdir)/result/scripts/$$name.err result.$$name.err` ; \
2004	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2005	      rm result.$$name result.$$name.err ; \
2006	  fi ; fi ; done)
2007
2008Catatests : xmlcatalog$(EXEEXT)
2009	@(echo > .memdump)
2010	@echo "## Catalog regression tests"
2011	-@(for i in $(srcdir)/test/catalogs/*.script ; do \
2012	  name=`basename $$i .script`; \
2013	  xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \
2014	  if [ -f $$xml ] ; then \
2015	  if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
2016	      echo New test file $$name ; \
2017	      $(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > $(srcdir)/result/catalogs/$$name ; \
2018	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2019	  else \
2020	      log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > result.$$name ; \
2021	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2022	      diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
2023	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2024	      rm result.$$name ; \
2025	  fi ; fi ; done)
2026	-@(for i in $(srcdir)/test/catalogs/*.script ; do \
2027	  name=`basename $$i .script`; \
2028	  sgml=$(srcdir)/test/catalogs/`basename $$i .script`.sgml; \
2029	  if [ -f $$sgml ] ; then \
2030	  if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
2031	      echo New test file $$name ; \
2032	      $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \
2033	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2034	  else \
2035	      log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \
2036	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2037	      diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
2038	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2039	      rm result.$$name ; \
2040	  fi ; fi ; done)
2041	@echo "## Add and del operations on XML Catalogs"
2042	-@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout $(srcdir)/result/catalogs/mycatalog; \
2043	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2044	$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid sysid $(srcdir)/result/catalogs/mycatalog; \
2045	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2046	$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid2 sysid2 $(srcdir)/result/catalogs/mycatalog; \
2047	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2048	$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid3 sysid3 $(srcdir)/result/catalogs/mycatalog; \
2049	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2050	diff result/catalogs/mycatalog.full $(srcdir)/result/catalogs/mycatalog; \
2051	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2052	$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid $(srcdir)/result/catalogs/mycatalog; \
2053	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2054	$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 $(srcdir)/result/catalogs/mycatalog; \
2055	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2056	$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 $(srcdir)/result/catalogs/mycatalog; \
2057	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2058	diff result/catalogs/mycatalog.empty $(srcdir)/result/catalogs/mycatalog; \
2059	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2060	rm -f $(srcdir)/result/catalogs/mycatalog)
2061
2062SVGtests : xmllint$(EXEEXT)
2063	@echo "## SVG parsing regression tests"
2064	-@(for i in $(srcdir)/test/SVG/* ; do \
2065	  name=`basename $$i`; \
2066	  if [ ! -d $$i ] ; then \
2067	  if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \
2068	      echo New test file $$name ; \
2069	      $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \
2070	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2071	  else \
2072	      echo Testing $$name ; \
2073	      $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \
2074	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2075	      diff $(srcdir)/result/SVG/$$name result.$$name ; \
2076	      $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \
2077	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2078	      diff result.$$name result2.$$name ; \
2079	      rm result.$$name result2.$$name ; \
2080	  fi ; fi ; done)
2081
2082Threadtests : testThreads$(EXEEXT)
2083	@echo "## Threaded regression tests"
2084	-@($(CHECKER) $(top_builddir)/testThreads ; \
2085	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2086	   exit 0)
2087
2088Readertests : xmllint$(EXEEXT)
2089	@(echo > .memdump)
2090	@echo "## Reader regression tests"
2091	-@(for i in $(srcdir)/test/* ; do \
2092	  name=`basename $$i`; \
2093	  if [ ! -d $$i ] ; then \
2094	  if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
2095	      echo New test file $$name ; \
2096	      $(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
2097	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2098	  else \
2099	      log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
2100	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2101	      diff $(srcdir)/result/$$name.rdr result.$$name` ; \
2102	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2103	      rm result.$$name ; \
2104	  fi ; fi ; done)
2105	@echo "## Reader on memory regression tests"
2106	-@(for i in $(srcdir)/test/* ; do \
2107	  name=`basename $$i`; \
2108	  if [ ! -d $$i ] ; then \
2109	  if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
2110	      echo New test file $$name ; \
2111	      $(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
2112	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2113	  else \
2114	      log=`$(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
2115	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2116	      diff $(srcdir)/result/$$name.rdr result.$$name` ; \
2117	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2118	      rm result.$$name ; \
2119	  fi ; fi ; done)
2120	@(echo > .memdump)
2121	@echo "## Walker regression tests"
2122	-@(for i in $(srcdir)/test/* ; do \
2123	  name=`basename $$i`; \
2124	  if [ ! -d $$i ] ; then \
2125	  if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
2126	      echo New test file $$name ; \
2127	      $(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
2128	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2129	  else \
2130	      log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > result.$$name 2>/dev/null ; \
2131	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2132	      diff $(srcdir)/result/$$name.rdr result.$$name` ; \
2133	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2134	      rm result.$$name ; \
2135	  fi ; fi ; done)
2136	@echo "## Reader entities substitution regression tests"
2137	-@(for i in $(srcdir)/test/* ; do \
2138	  name=`basename $$i`; \
2139	  if [ ! -d $$i ] ; then \
2140	  if [ ! -f $(srcdir)/result/$$name.rde ] ; then \
2141	      echo New test file $$name ; \
2142	      $(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > $(srcdir)/result/$$name.rde 2>/dev/null ; \
2143	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2144	  else \
2145	      log=`$(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
2146	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2147	      diff $(srcdir)/result/$$name.rde result.$$name` ; \
2148	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2149	      rm result.$$name ; \
2150	  fi ; fi ; done)
2151
2152SAXtests : testSAX$(EXEEXT)
2153	@(echo > .memdump)
2154	@echo "## SAX1 callbacks regression tests"
2155	-@(for i in $(srcdir)/test/* ; do \
2156	  name=`basename $$i`; \
2157	  if [ ! -d $$i ] ; then \
2158	  if [ ! -f $(srcdir)/result/$$name.sax ] ; then \
2159	      echo New test file $$name ; \
2160	      $(CHECKER) $(top_builddir)/testSAX $$i > $(srcdir)/result/$$name.sax 2> /dev/null ; \
2161	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2162	  else \
2163	      log=`$(CHECKER) $(top_builddir)/testSAX $$i > result.$$name 2> /dev/null ; \
2164	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2165	      diff $(srcdir)/result/$$name.sax result.$$name` ; \
2166	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2167	      rm result.$$name ; \
2168	  fi ; fi ; done)
2169	@echo "## SAX2 callbacks regression tests"
2170	-@(for i in $(srcdir)/test/* ; do \
2171	  name=`basename $$i`; \
2172	  if [ ! -d $$i ] ; then \
2173	  if [ ! -f $(srcdir)/result/$$name.sax2 ] ; then \
2174	      echo New test file $$name ; \
2175	      $(CHECKER) $(top_builddir)/testSAX --sax2 $$i > $(srcdir)/result/$$name.sax2 2> /dev/null ; \
2176	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2177	  else \
2178	      log=`$(CHECKER) $(top_builddir)/testSAX --sax2 $$i > result.$$name 2> /dev/null ; \
2179	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2180	      diff $(srcdir)/result/$$name.sax2 result.$$name` ; \
2181	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2182	      rm result.$$name ; \
2183	  fi ; fi ; done)
2184
2185Validtests : xmllint$(EXEEXT)
2186	@(echo > .memdump)
2187	@echo "## Valid documents regression tests"
2188	-@(for i in $(srcdir)/test/VCM/* ; do \
2189	  name=`basename $$i`; \
2190	  if [ ! -d $$i ] ; then \
2191	      log=`$(CHECKER) $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \
2192	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"`;\
2193	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2194	  fi ; done ; exit 0)
2195	@echo "## Validity checking regression tests"
2196	-@(for i in $(srcdir)/test/VC/* ; do \
2197	  name=`basename $$i`; \
2198	  if [ ! -d $$i ] ; then \
2199	  if [ ! -f $(srcdir)/result/VC/$$name ] ; then \
2200	      echo New test file $$name ; \
2201	      $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \
2202	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2203	  else \
2204	      log=`$(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \
2205	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2206	      diff $(srcdir)/result/VC/$$name result.$$name` ; \
2207	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2208	      rm result.$$name ; \
2209	  fi ; fi ; done)
2210	@echo "## General documents valid regression tests"
2211	-@(for i in $(srcdir)/test/valid/* ; do \
2212	  name=`basename $$i`; \
2213	  if [ ! -d $$i ] ; then \
2214	  if [ ! -f $(srcdir)/result/valid/$$name ] ; then \
2215	      echo New test file $$name ; \
2216	      $(CHECKER) $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \
2217	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2218	  else \
2219	      log=`$(CHECKER) $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \
2220	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2221	      diff $(srcdir)/result/valid/$$name result.$$name ; \
2222	      diff $(srcdir)/result/valid/$$name.err error.$$name` ; \
2223	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2224	      rm result.$$name error.$$name ; \
2225	  fi ; fi ; done)
2226
2227Regexptests: testRegexp$(EXEEXT)
2228	@(echo > .memdump)
2229	@echo "## Regexp regression tests"
2230	-@(for i in $(srcdir)/test/regexp/* ; do \
2231	  name=`basename $$i`; \
2232	  if [ ! -d $$i ] ; then \
2233	  if [ ! -f $(srcdir)/result/regexp/$$name ] ; then \
2234	      echo New test file $$name ; \
2235	      $(CHECKER) $(top_builddir)/testRegexp -i $$i > $(srcdir)/result/regexp/$$name; \
2236	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2237	  else \
2238	      log=`$(CHECKER) $(top_builddir)/testRegexp -i $$i 2>&1 > result.$$name ; \
2239	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2240	      diff $(srcdir)/result/regexp/$$name result.$$name` ; \
2241	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2242	      rm result.$$name ; \
2243	  fi ; fi ; done)
2244	@echo "## Formal expresssions regression tests"
2245	-@(for i in $(srcdir)/test/expr/* ; do \
2246	  name=`basename $$i`; \
2247	  if [ ! -d $$i ] ; then \
2248	  if [ ! -f $(srcdir)/result/expr/$$name ] ; then \
2249	      echo New test file $$name ; \
2250	      $(CHECKER) $(top_builddir)/testRegexp --expr -i $$i > $(srcdir)/result/expr/$$name; \
2251	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2252	  else \
2253	      log=`$(CHECKER) $(top_builddir)/testRegexp --expr -i $$i 2>&1 > result.$$name ; \
2254	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2255	      diff $(srcdir)/result/expr/$$name result.$$name` ; \
2256	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2257	      rm result.$$name ; \
2258	  fi ; fi ; done)
2259
2260Automatatests: testAutomata$(EXEEXT)
2261	@(echo > .memdump)
2262	@echo "## Automata regression tests"
2263	-@(for i in $(srcdir)/test/automata/* ; do \
2264	  name=`basename $$i`; \
2265	  if [ ! -d $$i ] ; then \
2266	  if [ ! -f $(srcdir)/result/automata/$$name ] ; then \
2267	      echo New test file $$name ; \
2268	      $(CHECKER) $(top_builddir)/testAutomata $$i > $(srcdir)/result/automata/$$name; \
2269	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2270	  else \
2271	      log=`$(CHECKER) $(top_builddir)/testAutomata $$i 2>&1 > result.$$name ; \
2272	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2273	      diff $(srcdir)/result/automata/$$name result.$$name` ; \
2274	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2275	      rm result.$$name ; \
2276	  fi ; fi ; done)
2277
2278dba100000.xml: dbgenattr.pl
2279	@echo "## generating dba100000.xml"
2280	@($(PERL) $(top_srcdir)/dbgenattr.pl 100000 > dba100000.xml)
2281
2282Timingtests: xmllint$(EXEEXT) dba100000.xml
2283	@echo "## Timing tests to try to detect performance"
2284	@echo "## as well a memory usage breakage when streaming"
2285	@echo "## 1/ using the file interface"
2286	@echo "## 2/ using the memory interface"
2287	@echo "## 3/ repeated DOM parsing"
2288	@echo "## 4/ repeated DOM validation"
2289	-@($(top_builddir)/xmllint --stream --timing dba100000.xml; \
2290	   MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2291	   if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2292	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2293	   exit 0)
2294	-@($(top_builddir)/xmllint --stream --timing --memory dba100000.xml; \
2295	   MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2296	   if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2297	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2298	   exit 0)
2299	-@($(top_builddir)/xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
2300	   MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2301	   if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2302	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2303	   exit 0)
2304
2305VTimingtests: xmllint$(EXEEXT)
2306	-@($(top_builddir)/xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
2307	   MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2308	   if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2309	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2310	   exit 0)
2311
2312C14Ntests : testC14N$(EXEEXT)
2313	@echo "## C14N and XPath regression tests"
2314	-@(for m in with-comments without-comments exc-without-comments ; do \
2315	    for i in $(srcdir)/test/c14n/$$m/*.xml ; do  \
2316		if [ ! -d $$i ] ; then \
2317		    name=`basename $$i .xml`; \
2318		    cmdline="$(CHECKER) $(top_builddir)/testC14N --$$m $$i"; \
2319		    if [ -f $(srcdir)/test/c14n/$$m/$$name.xpath ] ; then \
2320			cmdline="$$cmdline $(srcdir)/test/c14n/$$m/$$name.xpath"; \
2321			if [ -f $(srcdir)/test/c14n/$$m/$$name.ns ] ; then \
2322			    cmdline="$$cmdline '`cat $(srcdir)/test/c14n/$$m/$$name.ns`'"; \
2323			fi; \
2324		    fi; \
2325		    $$cmdline > $(srcdir)/test/c14n/test.tmp; \
2326		    if [ $$? -eq 0 ]; then \
2327			diff  $(srcdir)/result/c14n/$$m/$$name $(srcdir)/test/c14n/test.tmp; \
2328			if [ $$? -ne 0 ]; then \
2329			    echo "Test $$m/$$name failed"; \
2330			    cat $(srcdir)/test/c14n/test.tmp; \
2331			fi; \
2332		    else \
2333			echo "C14N failed"; \
2334		    fi; \
2335		    grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2336		fi; \
2337		rm -f $(srcdir)/test/c14n/test.tmp; \
2338	    done; \
2339	done)
2340
2341Schemastests: testSchemas$(EXEEXT)
2342	@(echo > .memdump)
2343	@echo "## Schemas regression tests"
2344	-@(for i in $(srcdir)/test/schemas/*_*.xsd ; do \
2345	  name=`basename $$i | sed 's+_.*++'`; \
2346	  sno=`basename $$i | sed 's+.*_\(.*\).xsd+\1+'`; \
2347	  for j in $(srcdir)/test/schemas/"$$name"_*.xml ; do \
2348	      if [ -f $$j ] ; then \
2349	      xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2350	      if [ ! -f $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" ]; \
2351	      then \
2352		  echo New test file "$$name"_"$$sno"_"$$xno" ; \
2353		  $(CHECKER) $(top_builddir)/testSchemas $$i $$j \
2354		    > $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \
2355		    2> $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err; \
2356	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2357	      else \
2358	          log=`$(CHECKER) $(top_builddir)/testSchemas $$i $$j \
2359		    > res.$$name 2> err.$$name;\
2360	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2361	          diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \
2362		       res.$$name;\
2363	          diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err \
2364		       err.$$name;\
2365		  grep Unimplemented err.$$name`; \
2366	          if [ -n "$$log" ] ; then echo "$$name"_"$$sno"_"$$xno" result ; echo $$log ; fi ; \
2367	          rm res.$$name err.$$name ; \
2368	       fi ; fi ;\
2369	  done; done)
2370
2371Relaxtests: xmllint$(EXEEXT)
2372	@(echo > .memdump)
2373	@echo "## Relax-NG regression tests"
2374	-@(for i in $(srcdir)/test/relaxng/*.rng ; do \
2375	  name=`basename $$i | sed 's+\.rng++'`; \
2376	  if [ ! -f $(srcdir)/result/relaxng/"$$name"_valid ] ; then \
2377	      echo New schemas $$name ; \
2378	      $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \
2379		      > $(srcdir)/result/relaxng/"$$name"_valid \
2380		      2> $(srcdir)/result/relaxng/"$$name"_err; \
2381	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2382	  else \
2383	      log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \
2384	      > res.$$name 2> err.$$name;\
2385	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2386	      diff $(srcdir)/result/relaxng/"$$name"_valid \
2387		   res.$$name;\
2388	      diff $(srcdir)/result/relaxng/"$$name"_err \
2389		   err.$$name | grep -v "error detected at";\
2390	      grep Unimplemented err.$$name`; \
2391	      if [ -n "$$log" ] ; then echo schemas $$name result ; echo $$log ; fi ; \
2392	      rm res.$$name err.$$name ; \
2393	  fi; \
2394	  for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
2395	      if [ -f $$j ] ; then \
2396	      xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2397	      if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
2398	      then \
2399		  echo New test file "$$name"_"$$xno" ; \
2400		  $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
2401		    > $(srcdir)/result/relaxng/"$$name"_"$$xno" \
2402		    2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \
2403	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2404	      else \
2405	          log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
2406		    > res.$$name 2> err.$$name;\
2407	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2408	          diff $(srcdir)/result/relaxng/"$$name"_"$$xno" \
2409		       res.$$name;\
2410	          diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \
2411		       err.$$name | grep -v "error detected at";\
2412		  grep Unimplemented err.$$name`; \
2413		  if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \
2414	          rm res.$$name err.$$name ; \
2415	       fi ; fi ; \
2416	  done; done)
2417	@echo "## Relax-NG streaming regression tests"
2418	-@(for i in $(srcdir)/test/relaxng/*.rng ; do \
2419	  name=`basename $$i | sed 's+\.rng++'`; \
2420	  for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
2421	      if [ -f $$j ] ; then \
2422	      xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2423	      if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
2424	      then \
2425		  echo New test file "$$name"_"$$xno" ; \
2426		  $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
2427		    > $(srcdir)/result/relaxng/"$$name"_"$$xno" \
2428		    2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \
2429	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2430	      else \
2431	          log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --stream --relaxng $$i $$j \
2432		    > res.$$name 2> err.$$name;\
2433	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2434	          diff $(srcdir)/result/relaxng/"$$name"_"$$xno" res.$$name;\
2435		  if [ "$$name" != "tutor10_1" -a "$$name" != "tutor10_2" -a "$$name" != "tutor3_2" -a "$$name" != "307377" ] ; then \
2436		      diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \
2437			   err.$$name | grep -v "error detected at";\
2438		  fi ; grep Unimplemented err.$$name`; \
2439	          if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \
2440	          rm res.$$name err.$$name ; \
2441	       fi ; fi ; \
2442	  done; done)
2443
2444Schematrontests: xmllint$(EXEEXT)
2445	@(echo > .memdump)
2446	@echo "## Schematron regression tests"
2447	-@(for i in $(srcdir)/test/schematron/*.sct ; do \
2448	  name=`basename $$i | sed 's+\.sct++'`; \
2449	  for j in $(srcdir)/test/schematron/"$$name"_*.xml ; do \
2450	      if [ -f $$j ] ; then \
2451	      xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2452	      if [ ! -f $(srcdir)/result/schematron/"$$name"_"$$xno" ]; \
2453	      then \
2454		  echo New test file "$$name"_"$$xno" ; \
2455		  $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
2456		    > $(srcdir)/result/schematron/"$$name"_"$$xno" \
2457		    2> $(srcdir)/result/schematron/"$$name"_"$$xno".err; \
2458	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2459	      else \
2460	          log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
2461		    > res.$$name 2> err.$$name;\
2462	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2463	          diff $(srcdir)/result/schematron/"$$name"_"$$xno" \
2464		       res.$$name;\
2465	          diff $(srcdir)/result/schematron/"$$name"_"$$xno".err \
2466		       err.$$name | grep -v "error detected at";\
2467		  grep Unimplemented err.$$name`; \
2468		  if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \
2469	          rm res.$$name err.$$name ; \
2470	       fi ; fi ; \
2471	  done; done)
2472
2473RelaxNGPythonTests:
2474	@(if [ -x $(PYTHON) ] ; then \
2475	    PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH ; \
2476	    export PYTHONPATH; \
2477	    LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
2478	    export LD_LIBRARY_PATH; \
2479	    echo "## Relax-NG Python based test suite 1" ; \
2480	    $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite.py ; \
2481	    echo "## Relax-NG Python based test suite 2" ; \
2482	    $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite2.py ; \
2483	  fi)
2484
2485SchemasPythonTests:
2486	@(if [ -x $(PYTHON) ] ; then \
2487	    PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH; \
2488	    export PYTHONPATH; \
2489	    LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
2490	    export LD_LIBRARY_PATH; \
2491	    echo "## XML Schemas datatypes Python based test suite" ; \
2492	    echo "## It is normal to see 11 errors reported" ; \
2493	    $(CHECKER) $(PYTHON) $(srcdir)/check-xsddata-test-suite.py ; \
2494	  fi)
2495	@(if [ -x $(PYTHON) -a -d xstc ] ; then cd xstc ; $(MAKE) CHECKER="$(CHECKER)" MAKEFLAGS+=--silent pytests ; fi)
2496
2497Patterntests: xmllint$(EXEEXT)
2498	@(echo > .memdump)
2499	@echo "## Pattern regression tests"
2500	-@(for i in $(srcdir)/test/pattern/*.pat ; do \
2501	  name=`basename $$i .pat`; \
2502	  if [ -f $(srcdir)/test/pattern/$$name.xml ] ; then \
2503	  if [ ! -f $(srcdir)/result/pattern/$$name ] ; then \
2504	      rm -f result.$$name ; \
2505	      echo New test file $$name ; \
2506	      for pat in `cat $$i` ; do \
2507	      $(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/pattern/$$name.xml >> $(srcdir)/result/pattern/$$name ; \
2508	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2509	      done ;\
2510	  else \
2511	      rm -f result.$$name ; \
2512	      lst=`cat $$i` ; \
2513	      log=`for pat in $$lst ; do $(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/pattern/$$name.xml 2>&1 >> result.$$name ; \
2514	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2515	      done ;\
2516	      diff $(srcdir)/result/pattern/$$name result.$$name` ; \
2517	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2518	      rm result.$$name ; \
2519	  fi ; fi ; done ;)
2520
2521ModuleTests: testModule$(EXEEXT) testdso.la
2522	@echo "## Module tests"
2523	@(./testModule$(EXEEXT))
2524
2525cleanup:
2526	-@(find . -name .\#\* -exec rm {} \;)
2527	-@(find . -name \*.gcda -o *.gcno -exec rm {} \;)
2528	-@(find . -name \*.orig -o -name \*.rej -o -name \*.old -exec rm {} \;)
2529
2530dist-hook: cleanup libxml2.spec
2531	-cp libxml2.spec $(distdir)
2532	(cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn win32 macos vms bakefile test result) | (cd $(distdir); tar xf -)
2533
2534dist-source: distdir
2535	$(AMTAR) -chof - --exclude Tests --exclude test --exclude result $(distdir) | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-sources+"`.tar.gz
2536
2537dist-test: distdir
2538	(mkdir -p $(distdir))
2539	(cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn xstc/Tests) | (cd $(distdir); tar xf -)
2540	tar -cf - $(distdir)/test $(distdir)/result $(distdir)/xstc/Tests  $(distdir)/Makefile.tests $(distdir)/README $(distdir)/README.tests $(distdir)/AUTHORS $(distdir)/testapi.c $(distdir)/runtest.c $(distdir)/runsuite.c | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-tests+"`.tar.gz
2541	@(rm -rf $(distdir)/xstc/Test)
2542
2543cleantar:
2544	@(rm -f libxml*.tar.gz COPYING.LIB)
2545
2546rpm: cleanup cleantar
2547	@(unset CDPATH ; $(MAKE) dist-source dist && rpmbuild -ta $(distdir).tar.gz)
2548
2549xml2Conf.sh: xml2Conf.sh.in Makefile
2550	sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
2551	    -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
2552	    -e 's?\@VERSION\@?$(VERSION)?g' \
2553	    -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
2554	       < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \
2555	&& mv xml2Conf.tmp xml2Conf.sh
2556
2557install-data-local: 
2558	$(mkinstalldirs) $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
2559	-/usr/bin/install -c -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
2560	$(mkinstalldirs) $(DESTDIR)$(EXAMPLES_DIR)
2561	-/usr/bin/install -c -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR)
2562	-/usr/bin/install -c -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR)
2563	-/usr/bin/install -c -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR)
2564	-/usr/bin/install -c -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR)
2565
2566uninstall-local:
2567	rm $(DESTDIR)$(EXAMPLES_DIR)/testXPath.c
2568	rm $(DESTDIR)$(EXAMPLES_DIR)/testHTML.c
2569	rm $(DESTDIR)$(EXAMPLES_DIR)/testSAX.c
2570	rm $(DESTDIR)$(EXAMPLES_DIR)/xmllint.c
2571	rm -rf $(DESTDIR)$(EXAMPLES_DIR)
2572	rm $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)/Copyright
2573	rm -rf $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
2574
2575tst: tst.c
2576	$(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz
2577
2578sparse: clean
2579	$(MAKE) CC=cgcc
2580
2581cov: clean-cov
2582	if [ "`echo $(LDFLAGS) | grep coverage`" = "" ] ; then \
2583	    echo not configured with coverage; exit 1 ; fi
2584	if [ ! -x $(LCOV) -o ! -x $(GENHTML) ] ; then \
2585	    echo Need $(LCOV) and $(GENHTML) excecutables; exit 1 ; fi
2586	-@($(MAKE) check)
2587	-@(./runsuite$(EXEEXT))
2588	mkdir $(top_builddir)/coverage
2589	$(LCOV) -c -o $(top_builddir)/coverage/libxml2.info.tmp -d $(top_srcdir)
2590	$(LCOV) -r $(top_builddir)/coverage/libxml2.info.tmp -o $(top_builddir)/coverage/libxml2.info *usr*
2591	rm $(top_builddir)/coverage/libxml2.info.tmp
2592	$(GENHTML) -s -t "libxml2" -o $(top_builddir)/coverage --legend $(top_builddir)/coverage/libxml2.info
2593	echo "Coverage report is in $(top_builddir)/coverage/index.html"
2594
2595clean-cov:
2596	rm -rf $(top_builddir)/coverage
2597# Tell versions [3.59,3.63) of GNU make to not export all variables.
2598# Otherwise a system limit (for SysV at least) may be exceeded.
2599.NOEXPORT:
2600