core: only enable location API for dbus-glib >= 0.86

This commit is contained in:
Dan Williams
2010-04-04 09:17:08 -07:00
parent f39afdd5f7
commit 2f1fbfb520
3 changed files with 41 additions and 7 deletions
+15
View File
@@ -113,6 +113,19 @@ esac
NM_COMPILER_WARNINGS
dnl
dnl dbus-glib >= 0.86 is required for Location API support
dnl
with_location_api=no
PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= 0.86, with_location_api="yes", with_location_api="no")
if test x"$with_location_api" = xyes; then
AC_DEFINE(LOCATION_API, 1, [Define if you have dbus-glib 0.86 or higher])
else
AC_MSG_WARN([dbus-glib >= 0.86 is required for Location API support])
fi
AM_CONDITIONAL(WITH_LOCATION_API, test "x$with_location_api" = "xyes")
AC_CONFIG_FILES([
Makefile
marshallers/Makefile
@@ -140,4 +153,6 @@ echo Building PPP-enabled tests: ${have_pppd_headers}
echo
echo Building with PolicyKit support: ${with_polkit}
echo
echo Building with Location API support: ${with_location_api}
echo