]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Install symlink pointing graphical.so to the default plugin
authorRay Strode <rstrode@redhat.com>
Wed, 11 Jun 2008 14:02:54 +0000 (10:02 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 11 Jun 2008 14:02:54 +0000 (10:02 -0400)
configure.ac
src/splash-plugins/Makefile.am

index e8a5d53c50efddae197d170c1ac3a24ec2d27329..82519688202e670fe7845346a9de82a5cfa249a7 100644 (file)
@@ -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
index 32efd5ae6612ad6d203da9276e3bb50fc22db6e4..39263d96a9c122623f3ab9351c5b9dd2b54aae7a 100644 (file)
@@ -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