Blame SOURCES/autofs-5.0.7-handle-new-location-of-systemd.patch

4d476f
autofs-5.0.7 - Handle new location of systemd
4d476f
4d476f
From: Frederic Crozat <fcrozat@suse.com>
4d476f
4d476f
Some distributions are moving systemd unit files from /lib to
4d476f
/usr/lib, so we need to test both directories.
4d476f
4d476f
edit: imk
4d476f
It occurs to me I've forgotten to check for the 64 bit variants
4d476f
of the directories, so add them as well.
4d476f
end edit: imk
4d476f
---
4d476f
4d476f
 CHANGELOG  |    1 +
4d476f
 aclocal.m4 |    2 +-
4d476f
 configure  |    2 +-
4d476f
 3 files changed, 3 insertions(+), 2 deletions(-)
4d476f
4d476f
4d476f
diff --git a/CHANGELOG b/CHANGELOG
4d476f
index 3bdf8a4..8f6bb3a 100644
4d476f
--- a/CHANGELOG
4d476f
+++ b/CHANGELOG
4d476f
@@ -14,6 +14,7 @@
4d476f
 - allow non root user to check status.
4d476f
 - fix recursive mount deadlock.
4d476f
 - increase file map read buffer size.
4d476f
+- handle new location of systemd.
4d476f
 
4d476f
 25/07/2012 autofs-5.0.7
4d476f
 =======================
4d476f
diff --git a/aclocal.m4 b/aclocal.m4
4d476f
index 1798c8b..47bca0c 100644
4d476f
--- a/aclocal.m4
4d476f
+++ b/aclocal.m4
4d476f
@@ -234,7 +234,7 @@ AC_DEFUN([AF_WITH_SYSTEMD],
4d476f
 [if test "$withval" = yes; then
4d476f
   if test -z "$systemddir"; then
4d476f
     AC_MSG_CHECKING([location of the systemd unit files directory])
4d476f
-    for systemd_d in /lib/systemd/system; do
4d476f
+    for systemd_d in /usr/lib/systemd/system /usr/lib64/systemd/system /lib/systemd/system /lib64/systemd/system; do
4d476f
       if test -z "$systemddir"; then
4d476f
         if test -d "$systemd_d"; then
4d476f
           systemddir="$systemd_d"
4d476f
diff --git a/configure b/configure
4d476f
index ba3bba6..3722a46 100755
4d476f
--- a/configure
4d476f
+++ b/configure
4d476f
@@ -2157,7 +2157,7 @@ if test "${with_systemd+set}" = set; then :
4d476f
   if test -z "$systemddir"; then
4d476f
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of the systemd unit files directory" >&5
4d476f
 $as_echo_n "checking location of the systemd unit files directory... " >&6; }
4d476f
-    for systemd_d in /lib/systemd/system; do
4d476f
+    for systemd_d in /usr/lib/systemd/system /usr/lib64/systemd/system /lib/systemd/system /lib64/systemd/system; do
4d476f
       if test -z "$systemddir"; then
4d476f
         if test -d "$systemd_d"; then
4d476f
           systemddir="$systemd_d"