Comment 28 for bug 912702

Revision history for this message
Bin Li (binli) wrote :

Marius,

  From #25, I found the patch from upstream is not related to this issue.

commit e78c3e83d2e0b49641c9d484e0b35b3c6ff9f0db
Author: Alban Browaeys <email address hidden>
Date: Wed Jan 2 10:37:36 2013 +0100

    build: negate the grep result. Not the echo result.

    https://bugzilla.gnome.org/show_bug.cgi?id=690991

diff --git a/configure.ac b/configure.ac
index f94d29c..84c36ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -278,7 +278,7 @@ AS_IF([test -z "$with_session_tracking"], with_session_tracking=consolekit)
 AS_IF([test "$with_session_tracking" = "ck"], with_session_tracking=consolekit)
 AS_IF([test "$with_session_tracking" = "none"], with_session_tracking=no)
 # check value
-AS_IF([! echo "$with_session_tracking" | grep -q -E "^(systemd|consolekit|no)$"],
+AS_IF([! (echo "$with_session_tracking" | grep -q -E "^(systemd|consolekit|no)$")],
        AC_MSG_ERROR([--with-session-tracking must be systemd/consolekit/no, not $with_session_tracking]))
 # add conditionals and subtitutions
 AM_CONDITIONAL(SESSION_TRACKING_CK, test "$with_session_tracking" = "consolekit")