AC_SUBST(GTK_VERSION)
-# For all platforms: Use Log4Vala 0.2 if available; else revert to 0.1
+# For all platforms: If Log4Vala is enabled, then Use Log4Vala 0.2 if available; else revert to 0.1
+if [test x$log4vala = xtrue]; then
PKG_CHECK_MODULES([LOG4VALA],
[log4vala-0.2],
[LOG4VALA_VERSION="log4vala-0.2"],
)]
)
AC_SUBST(LOG4VALA_VERSION)
-
+fi
# For all platforms: Use gee-0.8 if available; else revert to gee-1.0