summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac8
-rw-r--r--src/splash-plugins/Makefile.am5
2 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e8a5d53..8251968 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,6 +70,14 @@ AC_SUBST(background_start_color)
AC_ARG_WITH(background-end-color-stop, AC_HELP_STRING([--with-background-end-color], [first color end in background gradients used by boot splash plugins]),background_end_color=${withval},background_end_color=0x3a362f)
AC_SUBST(background_end_color)
+AC_ARG_WITH(default-plugin, AC_HELP_STRING([--with-default-plugin=fade-in], [Plugin to use by default]),default_plugin_name=${withval},default_plugin_name=fade-in)
+AM_CONDITIONAL(ADD_DEFAULT_PLUGIN_LINK,
+ [test "$default_plugin_name" = "spinfinity" \
+ -o "$default_plugin_name" = "fade-in" \
+ -o "$default_plugin_name" = "text" \
+ -o "$default_plugin_name" = "details"])
+AC_SUBST(default_plugin_name)
+
AC_OUTPUT([Makefile
src/libply/Makefile
src/libplybootsplash/Makefile
diff --git a/src/splash-plugins/Makefile.am b/src/splash-plugins/Makefile.am
index 32efd5a..39263d9 100644
--- a/src/splash-plugins/Makefile.am
+++ b/src/splash-plugins/Makefile.am
@@ -1,2 +1,7 @@
SUBDIRS = spinfinity fade-in text details
MAINTAINERCLEANFILES = Makefile.in
+
+if ADD_DEFAULT_PLUGIN_LINK
+install-data-hook:
+ (cd $(DESTDIR)$(libdir)/plymouth; ln -sf $(default_plugin_name).so graphical.so)
+endif