diff --git a/configure.ac b/configure.ac index dc578d73a4ea..f35d2da7df2a 100644 --- a/configure.ac +++ b/configure.ac @@ -9484,10 +9484,12 @@ if test "$test_gtk" = "yes"; then if test "$ENABLE_GNOMEVFS" = "TRUE"; then AC_MSG_ERROR([please use --enable-gio only together with --disable-gnome-vfs.]) fi - ENABLE_GIO="TRUE" - AC_MSG_RESULT([yes]) - PKG_CHECK_MODULES( GIO, gio-2.0 ) - AC_DEFINE(ENABLE_GIO) + dnl Need at least 2.26 for the dbus support. + PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.26], + [ENABLE_GIO="TRUE"], [ENABLE_GIO=""]) + if test "$ENABLE_GIO" = "TRUE"; then + AC_DEFINE(ENABLE_GIO) + fi else AC_MSG_RESULT([no]) fi