mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 00:34:39 +08:00
Check if PKG_CHECK_EXISTS is available
This commit is contained in:
parent
2123a141b4
commit
10b8d4ebdd
15
acinclude.m4
15
acinclude.m4
@ -82,12 +82,17 @@ AC_DEFUN([AC_PATH_GLIB], [
|
||||
|
||||
AC_DEFUN([AC_PATH_DBUS], [
|
||||
PKG_CHECK_MODULES(DBUS, dbus-1 > 0.35, dummy=yes, AC_MSG_ERROR(dbus > 0.35 is required))
|
||||
PKG_CHECK_EXISTS(dbus-1 < 0.95, DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE")
|
||||
if (test "${glib_found}" = "yes"); then
|
||||
PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 > 0.60, dbus_glib_found=yes, dbus_glib_found=no)
|
||||
else
|
||||
m4_ifdef([PKG_CHECK_EXISTS], [
|
||||
PKG_CHECK_EXISTS(dbus-1 < 0.95, DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE")
|
||||
if (test "${glib_found}" = "yes"); then
|
||||
PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 > 0.60, dbus_glib_found=yes, dbus_glib_found=no)
|
||||
else
|
||||
dbus_glib_found=no
|
||||
fi
|
||||
], [
|
||||
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
|
||||
dbus_glib_found=no
|
||||
fi
|
||||
])
|
||||
AC_SUBST(DBUS_CFLAGS)
|
||||
AC_SUBST(DBUS_LIBS)
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user