chiark / gitweb /
build-sys: fix --enable-dbus
[elogind.git] / configure.ac
index d8a9356adbb204dd7927d882b81e2c0e77025225..939ba6dcf094c325ee440c25782c465034a395bb 100644 (file)
@@ -249,7 +249,7 @@ m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-conf
 # ------------------------------------------------------------------------------
 have_dbus=no
 AC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests]))
-AS_IF(["x$enable_dbus" != "xno"], [
+AS_IF([test "x$enable_dbus" != "xno"], [
         PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2],
                 [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes],
                 [have_dbus=no])
@@ -816,7 +816,7 @@ AM_CONDITIONAL(ENABLE_MULTI_SEAT_X, [test "$have_multi_seat_x" = "yes"])
 # ------------------------------------------------------------------------------
 have_kdbus=no
 AC_ARG_ENABLE(kdbus, AS_HELP_STRING([--enable-kdbus], [do connect to kdbus by default]))
-if test "x$enable_kdbus" == "xyes"; then
+if test "x$enable_kdbus" = "xyes"; then
         AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus support is to be enabled])
         have_kdbus=yes
         M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS"