OSDN Git Service

build: Fix selecting HoG suspend backend
authorJoão Paulo Rechi Vita <jprvita@openbossa.org>
Mon, 29 Oct 2012 20:33:57 +0000 (17:33 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 30 Oct 2012 12:12:08 +0000 (14:12 +0200)
The dummy backend was always being compiled and the --with-hog-suspend
option was not being accepted by configure. Now the backend can be
selected with --with-hog-suspend and the suspend implementation file is
generated during compile time.

.gitignore
Makefile.am
acinclude.m4

index b5c7356..27c4687 100644 (file)
@@ -35,6 +35,7 @@ scripts/bluetooth.rules
 scripts/97-bluetooth.rules
 scripts/97-bluetooth-hid2hci.rules
 
+profiles/input/suspend.c
 profiles/sap/sap.c
 profiles/cups/bluetooth
 
index 35b1520..291f75a 100644 (file)
@@ -184,9 +184,12 @@ if HOGPLUGIN
 builtin_modules += hog
 builtin_sources += profiles/input/hog_manager.c profiles/input/hog_device.h \
                        profiles/input/hog_device.c profiles/input/uhid_copy.h \
-                       profiles/input/suspend-dummy.c profiles/input/suspend.h
+                       profiles/input/suspend.h
+builtin_nodist += profiles/input/suspend.c
 endif
 
+EXTRA_DIST += profiles/input/suspend-dummy.c
+
 if NETWORKPLUGIN
 builtin_modules += network
 builtin_sources += profiles/network/main.c \
index 4bac3f0..ddc8183 100644 (file)
@@ -290,7 +290,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
                wiimote_enable=${enableval}
        ])
 
-       AC_ARG_WITH(gatt, AC_HELP_STRING([--with-hog-suspend=DRIVER], [select HoG suspend driver]), [
+       AC_ARG_WITH(hog_suspend, AC_HELP_STRING([--with-hog-suspend=DRIVER], [select HoG suspend driver]), [
                hog_suspend_driver=${withval}
        ])