summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Andler <scislac@gmail.com>2011-08-05 16:47:02 +0000
committerJosh Andler <scislac@gmail.com>2011-08-05 16:47:02 +0000
commit43503fea1b750c3eb859320f1dc9eb909da510f0 (patch)
tree0a3e338f9302339777d8d9560a1064403eff4d8f
parentFilters. Adding opacity support in Bump filter. (diff)
downloadinkscape-43503fea1b750c3eb859320f1dc9eb909da510f0.tar.gz
inkscape-43503fea1b750c3eb859320f1dc9eb909da510f0.zip
Patch from Yu-Jie Lin for bug 820863 to add the option to disable libwpg
(bzr r10528)
-rw-r--r--configure.ac42
1 files changed, 24 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac
index cd3c81011..414bb6139 100644
--- a/configure.ac
+++ b/configure.ac
@@ -621,29 +621,35 @@ dnl ******************************
dnl Check for libwpg for extension
dnl ******************************
+AC_ARG_ENABLE(wpg,
+ [ --disable-wpg compile without support for WordPerfect Graphics],
+ enable_wpg=$enableval,enable_wpg=yes)
+
with_libwpg=no
-PKG_CHECK_MODULES(LIBWPG01, libwpg-0.1 libwpg-stream-0.1, with_libwpg01=yes, with_libwpg01=no)
-if test "x$with_libwpg01" = "xyes"; then
- AC_DEFINE(WITH_LIBWPG01,1,[Build in libwpg 0.1.x])
- with_libwpg=yes
- AC_SUBST(LIBWPG_LIBS, $LIBWPG01_LIBS)
- AC_SUBST(LIBWPG_CFLAGS, $LIBWPG01_CFLAGS)
-fi
-AM_CONDITIONAL(WITH_LIBWPG01, test "x$with_libwpg01" = "xyes")
+if test "x$enable_wpg" = "xyes"; then
+ PKG_CHECK_MODULES(LIBWPG01, libwpg-0.1 libwpg-stream-0.1, with_libwpg01=yes, with_libwpg01=no)
+ if test "x$with_libwpg01" = "xyes"; then
+ AC_DEFINE(WITH_LIBWPG01,1,[Build in libwpg 0.1.x])
+ with_libwpg=yes
+ AC_SUBST(LIBWPG_LIBS, $LIBWPG01_LIBS)
+ AC_SUBST(LIBWPG_CFLAGS, $LIBWPG01_CFLAGS)
+ fi
-PKG_CHECK_MODULES(LIBWPG02, libwpg-0.2 libwpd-0.9 libwpd-stream-0.9, with_libwpg02=yes, with_libwpg02=no)
-if test "x$with_libwpg02" = "xyes"; then
- AC_DEFINE(WITH_LIBWPG02,1,[Build in libwpg 0.2.x])
- with_libwpg=yes
- AC_SUBST(LIBWPG_LIBS, $LIBWPG02_LIBS)
- AC_SUBST(LIBWPG_CFLAGS, $LIBWPG02_CFLAGS)
-fi
-AM_CONDITIONAL(WITH_LIBWPG02, test "x$with_libwpg02" = "xyes")
+ PKG_CHECK_MODULES(LIBWPG02, libwpg-0.2 libwpd-0.9 libwpd-stream-0.9, with_libwpg02=yes, with_libwpg02=no)
+ if test "x$with_libwpg02" = "xyes"; then
+ AC_DEFINE(WITH_LIBWPG02,1,[Build in libwpg 0.2.x])
+ with_libwpg=yes
+ AC_SUBST(LIBWPG_LIBS, $LIBWPG02_LIBS)
+ AC_SUBST(LIBWPG_CFLAGS, $LIBWPG02_CFLAGS)
+ fi
-if test "x$with_libwpg" = "xyes"; then
- AC_DEFINE(WITH_LIBWPG,1,[Build in libwpg])
+ if test "x$with_libwpg" = "xyes"; then
+ AC_DEFINE(WITH_LIBWPG,1,[Build in libwpg])
+ fi
fi
+AM_CONDITIONAL(WITH_LIBWPG01, test "x$with_libwpg01" = "xyes")
+AM_CONDITIONAL(WITH_LIBWPG02, test "x$with_libwpg02" = "xyes")
AM_CONDITIONAL(WITH_LIBWPG, test "x$with_libwpg" = "xyes")
dnl ******************************