]> granicus.if.org Git - graphviz/commitdiff
add framework for -Tswf using ming
authorellson <devnull@localhost>
Sat, 2 Sep 2006 17:29:46 +0000 (17:29 +0000)
committerellson <devnull@localhost>
Sat, 2 Sep 2006 17:29:46 +0000 (17:29 +0000)
configure.ac
plugin/Makefile.am

index 5de7775bb48072c5d5c8337cad21b8d207b9e536..d65a91f1053feebdf927a42c1f6b69d571ca5019 100644 (file)
@@ -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
index 0a2c2cc78cc78185a18c889bd45b48f7c12debf9..e644d54172ff3947807124f02f7aa65a5a94c8c7 100644 (file)
@@ -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