config: enable extra touch axis, if libinput support extra touch axis 87/183487/2 accepted/tizen/unified/20180710.082827 submit/tizen/20180709.070729
authorJengHyun Kang <jhyuni.kang@samsung.com>
Fri, 6 Jul 2018 04:02:47 +0000 (13:02 +0900)
committerJeongHyun Kang <jhyuni.kang@samsung.com>
Fri, 6 Jul 2018 07:59:16 +0000 (07:59 +0000)
Change-Id: I8ca786d8b7769590f1e07356ec57b51aea38091f

configure.ac

index 8adf58331027748180f43cd4d5c90d7a89ed37dd..2e88f95d049af7b17bb2a823f19c56d075577171 100755 (executable)
@@ -521,6 +521,12 @@ AM_CONDITIONAL([HAVE_SYSTEMD], [test "x${have_systemd}" = "xyes"])
 #libinput
 PKG_CHECK_MODULES([LIBINPUT], [libinput])
 
+have_extra_touch_event="no"
+AC_CHECK_LIB(input, libinput_event_touch_get_major, [have_extra_touch_event="yes"])
+if test "x${have_extra_touch_event}" = "xyes";then
+AC_DEFINE_UNQUOTED([LIBINPUT_SUPPORT_EXTRA_TOUCH_EVENT], [1], [libinput support extra touch event])
+fi
+
 #capi-system-device
 PKG_CHECK_MODULES([CAPI_SYSTEM_DEVICE],
                   [capi-system-device])