]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
configure: Use pkgconfig to determine the systemd unit dir location
authorCristian Rodríguez <crrodriguez@opensuse.org>
Sat, 13 Apr 2013 19:16:05 +0000 (16:16 -0300)
committerRay Strode <rstrode@redhat.com>
Sun, 14 Apr 2013 16:08:55 +0000 (12:08 -0400)
Don't assume it's in /lib/systemd/system

configure.ac

index 7154aaf1313f0b310b5a5a790fdff1ad79c3f31b..b14bbd2e6e7c0491e58c8c3df1a5540f40651c73 100644 (file)
@@ -256,7 +256,7 @@ AM_CONDITIONAL(ENABLE_SYSTEMD_INTEGRATION, [test "$enable_systemd_integration" =
 
 if test x$enable_systemd_integration = xyes; then
   AC_DEFINE(PLY_ENABLE_SYSTEMD_INTEGRATION, 1, [Coordinate boot up with systemd])
-  SYSTEMD_UNIT_DIR=/lib/systemd/system
+  SYSTEMD_UNIT_DIR=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
   AC_SUBST(SYSTEMD_UNIT_DIR)
 fi