[PATCH 4/6] configure.ac: Check linux/input.h header instead of /dev/input

[email protected] Wed, 27 May 2026 15:29:01 +0300
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>
From: Doron Behar <[email protected]>

---
 configure.ac | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3bbc09cf..fe169a9a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -283,11 +283,9 @@ else
 fi
 
 AC_MSG_CHECKING(for devinput)
-AC_CHECK_FILE([/dev/input],[
+AC_CHECK_HEADERS([linux/input.h], [
   have_devinput="yes"
-  AC_MSG_RESULT(yes)
-],[
-  AC_MSG_RESULT(no)
+], [
   have_devinput="no"
 ])
 
-- 
2.54.0