Code

r16912@shi: ted | 2007-10-30 21:15:07 -0700
authorgouldtj <gouldtj@users.sourceforge.net>
Wed, 31 Oct 2007 13:28:23 +0000 (13:28 +0000)
committergouldtj <gouldtj@users.sourceforge.net>
Wed, 31 Oct 2007 13:28:23 +0000 (13:28 +0000)
 Build in checking for libwpg

configure.ac

index 4f86ff8310f07efade0b4bcf1c53f2aabcb679fa..b707eb4afd8eebe37abf8b5f3d14a76c1a558b4f 100644 (file)
@@ -544,6 +544,16 @@ AM_CONDITIONAL(WITH_INKBOARD, test "x$with_inkboard" = "xyes")
 AC_SUBST(INKBOARD_LIBS)
 AC_SUBST(INKBOARD_CFLAGS)
 
+dnl ******************************
+dnl Check for libwpg for extension
+dnl ******************************
+
+PKG_CHECK_MODULES(LIBWPG, libwpg-0.1, with_libwpg=yes, with_libwpg=no)
+if test "x$with_libwpg" = "xyes"; then
+       AC_DEFINE(WITH_LIBWPG,1,[Build in libwpg])
+fi
+AM_CONDITIONAL(WITH_LIBWPG, test "x$with_libwpg" = "xyes")
+
 dnl ******************************
 dnl Check for ImageMagick Magick++ 
 dnl ******************************
@@ -938,4 +948,5 @@ Configuration:
         Enable SSL in Inkboard:   ${with_inkboard_ssl}
         Enable Poppler-Cairo:     ${enable_poppler_cairo}
         ImageMagick Magick++:     ${magick_ok}
+        Libwpg:                   ${with_libwpg}
 "