[PATCH weston] build: check for INPUT_PROP_MAX in linux/input.h
Pekka Paalanen
ppaalanen at gmail.com
Tue Jul 2 08:00:56 PDT 2013
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?
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"
More information about the wayland-devel
mailing list