summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--acinclude.m47
-rw-r--r--hidd/Makefile.am3
2 files changed, 10 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8be69baf..db6d66fb 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -155,6 +155,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
echo_enable=no
hcid_enable=yes
sdpd_enable=yes
+ hidd_enable=yes
test_enable=no
cups_enable=no
configfiles_enable=yes
@@ -185,6 +186,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
echo_enable=${enableval}
hcid_enable=${enableval}
sdpd_enable=${enableval}
+ hidd_enable=${enableval}
test_enable=${enableval}
cups_enable=${enableval}
configfiles_enable=${enableval}
@@ -236,6 +238,10 @@ AC_DEFUN([AC_ARG_BLUEZ], [
sdpd_enable=${enableval}
])
+ AC_ARG_ENABLE(hidd, AC_HELP_STRING([--enable-hidd], [install HID daemon]), [
+ hidd_enable=${enableval}
+ ])
+
AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test], [install test programs]), [
test_enable=${enableval}
])
@@ -312,6 +318,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
AM_CONDITIONAL(ECHOSERVICE, test "${echo_enable}" = "yes")
AM_CONDITIONAL(HCID, test "${hcid_enable}" = "yes")
AM_CONDITIONAL(SDPD, test "${sdpd_enable}" = "yes")
+ AM_CONDITIONAL(HIDD, test "${sdpd_enable}" = "yes")
AM_CONDITIONAL(TEST, test "${test_enable}" = "yes")
AM_CONDITIONAL(CUPS, test "${cups_enable}" = "yes")
AM_CONDITIONAL(CONFIGFILES, test "${configfiles_enable}" = "yes")
diff --git a/hidd/Makefile.am b/hidd/Makefile.am
index 2dedccaa..5af91938 100644
--- a/hidd/Makefile.am
+++ b/hidd/Makefile.am
@@ -1,8 +1,11 @@
+if HIDD
bin_PROGRAMS = hidd
hidd_SOURCES = main.c hidd.h sdp.c uinput.h fakehid.c
+
hidd_LDADD = @BLUEZ_LIBS@ -lm $(top_builddir)/common/libhelper.a
+endif
AM_CFLAGS = @BLUEZ_CFLAGS@