LIBCUPSMIME = @LIBCUPSMIME@
LIBCUPSPPDC = @LIBCUPSPPDC@
LIBCUPSSTATIC = @LIBCUPSSTATIC@
+LIBGSSAPI = @LIBGSSAPI@
LIBMALLOC = @LIBMALLOC@
+LIBMXML = @LIBMXML@
LIBPAPER = @LIBPAPER@
-LIBGSSAPI = @LIBGSSAPI@
LIBUSB = @LIBUSB@
LIBWRAP = @LIBWRAP@
LIBZ = @LIBZ@
SAVELIBS="$SAVELIBS $LIBS")
LIBS="$SAVELIBS")
+dnl Checks for Mini-XML (www.minixml.org)...
+LIBMXML=""
+AC_CHECK_HEADER(mxml.h,
+ SAVELIBS="$LIBS"
+ AC_SEARCH_LIBS(mmxlNewElement,mxml,
+ AC_DEFINE(HAVE_MXML_H)
+ LIBMXML="-lmxml")
+ LIBS="$SAVELIBS")
+AC_SUBST(LIBMXML)
+
dnl Checks for statfs and its many headers...
AC_CHECK_HEADER(sys/mount.h,AC_DEFINE(HAVE_SYS_MOUNT_H))
AC_CHECK_HEADER(sys/statfs.h,AC_DEFINE(HAVE_SYS_STATFS_H))
*
* Configuration file for CUPS.
*
- * Copyright 2007-2011 by Apple Inc.
+ * Copyright 2007-2012 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
#undef HAVE_XPC
+/*
+ * Do we have Mini-XML?
+ */
+
+#undef HAVE_MXML_H
+
+
#endif /* !_CUPS_CONFIG_H_ */
/*
echo Linking $@...
$(CC) $(LDFLAGS) -o $@ xmltotest.o ../cups/$(LIBCUPSSTATIC) \
$(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) \
- -lmxml
+ $(LIBMXML)
#
*
* IANA XML registration to test file generator for CUPS.
*
- * Copyright 2011 by Apple Inc.
+ * Copyright 2011-2012 by Apple Inc.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
* write_expect() - Write an EXPECT test for an attribute.
*/
-#include <mxml.h>
+
+#include <config.h>
#include <cups/cups.h>
#include <unistd.h>
#include <fcntl.h>
-
+#ifdef HAVE_MXML_H
+# include <mxml.h>
/*
* Local types...
*/
}
+#else /* !HAVE_MXML */
+int
+main(void)
+{
+ return (1);
+}
+#endif /* HAVE_MXML */
+
+
/*
* End of "$Id$".
*/