[PATCH weston] build: check for INPUT_PROP_MAX in linux/input.h

Adrian M Negreanu groleo at gmail.com
Tue Jul 2 08:14:10 PDT 2013


On Tue, Jul 2, 2013 at 6:00 PM, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> On Tue,  2 Jul 2013 17:26:27 +0300
> Adrian Negreanu <groleo at gmail.com> wrote:
>
>> From: Adrian Negreanu <adrian.m.negreanu at intel.com>
>
>
> Why? When could it be missing?
If one uses kernel headers before the kernel commit:

  commit 85b7720039fc000b561c20fe2aaa3b54cddae4a7
  Author: Henrik Rydberg <rydberg at euromail.se>
  Date:   Sat Dec 18 20:51:13 2010 +0100

      Input: introduce device properties



>
>
> Thanks,
> pq
>
>> Signed-off-by: Adrian Negreanu <adrian.m.negreanu at intel.com>
>> ---
>>  configure.ac | 16 ++++++++++++++++
>>  1 file changed, 16 insertions(+)
>>
>> diff --git a/configure.ac b/configure.ac
>> index 726eb4f..2216e16 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -52,6 +52,22 @@ AC_CHECK_DECL(CLOCK_MONOTONIC,[],
>>             [[#include <time.h>]])
>>  AC_CHECK_HEADERS([execinfo.h])
>>
>> +AC_CHECK_HEADERS([linux/input.h])
>> +
>> +AC_MSG_CHECKING([INPUT_PROP_MAX in linux/input.h])
>> +AC_EGREP_CPP(yes_have_INPUT_PROP_MAX, [
>> +#include <linux/input.h>
>> +#ifdef INPUT_PROP_MAX
>> +yes_have_INPUT_PROP_MAX
>> +#endif
>> +], [
>> +    AC_MSG_RESULT([yes])
>> +], [
>> +    AC_MSG_RESULT([no])
>> +    AC_ERROR([INPUT_PROP_MAX is missing from linux/input.h])
>> +])
>> +
>> +
>>  AC_CHECK_FUNCS([mkostemp strchrnul])
>>
>>  COMPOSITOR_MODULES="wayland-server >= 1.1.90 pixman-1"
>



--
Regards!
http://groleo.wordpress.com


More information about the wayland-devel mailing list