diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-02-17 13:06:19 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-02-17 13:06:19 +0000 |
commit | 5903cfe8fdfa5df4a0ce737219385d16da85e279 (patch) | |
tree | 0c8d8fca78bc6aaaf63bbb82486cea2a36a4fdf4 /configure.in | |
parent | 2cabb56f7528c9756617dbae8a73d9878bfa9b59 (diff) |
Add D-Bus support for PIN request
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in index bc49b56b..4d57acdd 100644 --- a/configure.in +++ b/configure.in @@ -44,6 +44,12 @@ AC_ARG_WITH(bluez-includes, BLUEZ_INCDIR='../libs/include /usr/include' ) +AC_ARG_ENABLE(dbus, + --enable-dbus use D-BUS, + BLUEZ_DBUS="$enableval", + BLUEZ_DBUS="no" +) + AC_SEARCH_HEADERS(bluetooth/bluetooth.h, $BLUEZ_INCDIR,, AC_MSG_ERROR(Bluetooth headers not found. Please compile and install bluez-libs package.) @@ -71,4 +77,13 @@ AC_ARG_ENABLE(pcmcia, AC_TEST_DIR(/etc/pcmcia, PCMCIA=pcmcia, PCMCIA=) fi ]) +if test x"$BLUEZ_DBUS" == "xyes"; then + PKG_CHECK_MODULES(DBUS, dbus-1, have_dbus=yes, have_dbus=no) + + CFLAGS="$CFLAGS $DBUS_CFLAGS -DENABLE_DBUS" + LIBS="$LIBS $DBUS_LIBS" +fi + +AM_CONDITIONAL(ENABLE_DBUS, test x$BLUEZ_DBUS = xyes) + AC_OUTPUT(Makefile hcid/Makefile tools/Makefile rfcomm/Makefile test/Makefile scripts/Makefile pcmcia/Makefile) |