diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2015-08-21 21:25:27 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2015-08-21 21:39:22 +0200 |
commit | fc7ae396c89fb90a283c3991fc470892cf1f717d (patch) | |
tree | abbe5191d509e678c6470a84942f5ac39266aa71 | |
parent | 1dc013984ba11ad195e3b39997b14894ee9f756a (diff) |
Add support for static plugins builds
-rw-r--r-- | configure.ac | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 207181f6..da73040e 100644 --- a/configure.ac +++ b/configure.ac @@ -401,6 +401,28 @@ dnl LDFLAGS modifier defining exported symbols from built libraries GST_LIB_LDFLAGS=" -export-symbols-regex \^_*\(ges_\|GES_\).*" AC_SUBST(GST_LIB_LDFLAGS) +dnl build static plugins or not +AC_MSG_CHECKING([whether to build static plugins or not]) +AC_ARG_ENABLE( + static-plugins, + AC_HELP_STRING( + [--enable-static-plugins], + [build static plugins @<:@default=no@:>@]), + [AS_CASE( + [$enableval], [no], [], [yes], [], + [AC_MSG_ERROR([bad value "$enableval" for --enable-static-plugins])])], + [enable_static_plugins=no]) +AC_MSG_RESULT([$enable_static_plugins]) +if test "x$enable_static_plugins" = xyes; then + AC_DEFINE(GST_PLUGIN_BUILD_STATIC, 1, + [Define if static plugins should be built]) + GST_PLUGIN_LIBTOOLFLAGS="" +else + GST_PLUGIN_LIBTOOLFLAGS="--tag=disable-static" +fi +AC_SUBST(GST_PLUGIN_LIBTOOLFLAGS) +AM_CONDITIONAL(GST_PLUGIN_BUILD_STATIC, test "x$enable_static_plugins" = "xyes") + dnl *** output files *** dnl po/Makefile.in |