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

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