1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 # Permission to use, copy, modify, distribute, and sell this software and its
4 # documentation for any purpose is hereby granted without fee, provided that
5 # the above copyright notice appear in all copies and that both that
6 # copyright notice and this permission notice appear in supporting
7 # documentation, and that the name of Red Hat not be used in
8 # advertising or publicity pertaining to distribution of the software without
9 # specific, written prior permission. Red Hat makes no
10 # representations about the suitability of this software for any purpose. It
11 # is provided "as is" without express or implied warranty.
13 # RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
14 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
15 # EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
17 # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 # PERFORMANCE OF THIS SOFTWARE.
23 AC_INIT([xserver-xorg-input-gesture],
25 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
26 xserver-xorg-input-gesture)
28 AC_CONFIG_SRCDIR([Makefile.am])
30 AM_INIT_AUTOMAKE([dist-bzip2])
34 # Require xorg-macros: XORG_DEFAULT_OPTIONS
35 m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])])
36 XORG_MACROS_VERSION(1.3)
37 AM_CONFIG_HEADER([config.h])
39 # Checks for programs.
45 AH_TOP([#include "xorg-server.h"])
47 AC_ARG_WITH(xorg-module-dir,
48 AC_HELP_STRING([--with-xorg-module-dir=DIR],
49 [Default xorg module directory [[default=$libdir/xorg/modules]]]),
50 [moduledir="$withval"],
51 [moduledir="$libdir/xorg/modules"])
52 inputdir=${moduledir}/input
55 # Checks for pkg-config packages. We need to be able to override sdkdir
56 # to satisfy silly distcheck requirements.
57 PKG_CHECK_MODULES(XORG, xorg-server xproto $REQUIRED_MODULES)
58 XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
59 AC_ARG_WITH([sdkdir], [],
61 [sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`])
64 # Checks for libraries.
66 # Checks for header files.
70 AC_SUBST([DRIVER_NAME])