From 6c2767e947eb3fec4e8b34c48c46d116094ae9d2 Mon Sep 17 00:00:00 2001 From: ellson Date: Sat, 2 Sep 2006 17:29:46 +0000 Subject: [PATCH] add framework for -Tswf using ming --- configure.ac | 24 ++++++++++++++++++++++++ plugin/Makefile.am | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5de7775bb..d65a91f10 100644 --- a/configure.ac +++ b/configure.ac @@ -1275,6 +1275,29 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) ALL_LINGUAS="" AM_GLIB_GNU_GETTEXT +dnl ----------------------------------- +dnl INCLUDES and LIBS for LIBMING (SWF renderer) + +AC_ARG_WITH(libming, + [AC_HELP_STRING([--with-libming], + [use libming library])]) + +### default is to build with libming +if test "x$with_libming" != "xno"; then + with_libming=yes +fi + +if test "x$with_libming" = "xyes"; then +PKG_CHECK_MODULES(LIBMING, [libming >= 0.4], + [HAVE_LIBMING=1 + AC_DEFINE_UNQUOTED(HAVE_LIBMING,1, + [Define if you have the libming library for SWF support])], + [AC_MSG_WARN(libming library not available)]) +AC_SUBST(LIBMING_CFAGS) +AC_SUBST(LIBMING_LIBS) +fi +AM_CONDITIONAL(WITH_LIBMING, [test "x$HAVE_LIBMING" != "x"]) + dnl ----------------------------------- dnl INCLUDES and LIBS for GD @@ -1892,6 +1915,7 @@ AC_CONFIG_FILES(Makefile plugin/core/Makefile plugin/gd/Makefile plugin/pango/Makefile + plugin/ming/Makefile plugin/dot_layout/Makefile plugin/neato_layout/Makefile plugin/xlib/Makefile diff --git a/plugin/Makefile.am b/plugin/Makefile.am index 0a2c2cc78..e644d5417 100644 --- a/plugin/Makefile.am +++ b/plugin/Makefile.am @@ -1,6 +1,6 @@ # $Id$ $Revision$ ## Process this file with automake to produce Makefile.in -SUBDIRS = core gd pango dot_layout neato_layout xlib gtk +SUBDIRS = core gd pango dot_layout neato_layout xlib gtk ming EXTRA_DIST = Makefile.old -- 2.50.1