[xslt] [patch] disable plugins when --disable-shared



Current CVS plugin testcase will fail when a user does

  ./configure --disable-shared && make check

the attached patch warns user that they cannot --disable-shared and have
plugin support enabled, then disables plugin support.

jr
Index: configure.in
===================================================================
RCS file: /cvs/gnome/libxslt/configure.in,v
retrieving revision 1.167
diff -u -r1.167 configure.in
--- configure.in	17 Jan 2005 15:51:33 -0000	1.167
+++ configure.in	19 Jan 2005 03:48:07 -0000
@@ -445,6 +445,16 @@
     with_plugins=yes
 fi
 
+AC_MSG_CHECKING([whether shared libraries will be built (required for plugins)])
+if test "$enable_shared" = "no" -a "$with_plugins" = "yes"; then
+	 AC_MSG_RESULT(no)
+	 AC_MSG_WARN([Disabling plugin support.])
+	 AC_MSG_WARN([Plugins require that shared libraries be built.])
+	 with_plugins=no
+else
+	 AC_MSG_RESULT(yes)
+fi
+
 if test "$with_plugins" = "yes" ; then
   AC_MSG_CHECKING([libxml2 module support])
   WITH_MODULES="`$XML_CONFIG --modules`"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]