summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-03-02 09:01:22 +0100
committerThomas Haller <thaller@redhat.com>2015-03-02 09:01:23 +0100
commit2c96ac73be253f251a0dd48db66d30cb6bb69e8a (patch)
tree8df720f5a09e79df5eaac39583a15fc6b95e3ee3
parent5aa204edec9541dd47344aee228bd5f94121213d (diff)
build: remove bashism from configure.ac constructing session_tracking value
(ln -snf /bin/dash ./sh; export PATH=".:$PATH"; export CONFIG_SHELL=/bin/dash; ./configure) https://bugzilla.gnome.org/show_bug.cgi?id=743480
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a6780114a5..3df0a6a174 100644
--- a/configure.ac
+++ b/configure.ac
@@ -384,7 +384,7 @@ if test "$use_consolekit" = "yes"; then
AC_DEFINE([CKDB_PATH], "/var/run/ConsoleKit/database", [Path to ConsoleKit database])
session_tracking="$session_tracking, consolekit"
fi
-session_tracking=${session_tracking:2}
+session_tracking="$(printf '%s' "${session_tracking}" | sed 's/^, //')"
AC_ARG_WITH(suspend-resume, AS_HELP_STRING([--with-suspend-resume=upower|systemd], [Build NetworkManager with specific suspend/resume support]))
if test "z$with_suspend_resume" = "z"; then