Merge branch 'devel/x11' into tizen
[platform/adaptation/xf86-input-gesture.git] / configure.ac
1 #  Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved 
2 #
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.
12 #
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.
20 #
21
22 AC_PREREQ(2.57)
23 AC_INIT([xserver-xorg-input-gesture],
24         0.1.0,
25         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
26         xserver-xorg-input-gesture)
27
28 AC_CONFIG_SRCDIR([Makefile.am])
29 AC_CONFIG_AUX_DIR(.)
30 AM_INIT_AUTOMAKE([dist-bzip2])
31
32 AM_MAINTAINER_MODE
33
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])
38
39 # Checks for programs.
40 AC_DISABLE_STATIC
41 AC_PROG_LIBTOOL
42 AC_PROG_CC
43 XORG_DEFAULT_OPTIONS
44
45 AH_TOP([#include "xorg-server.h"])
46
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
53 AC_SUBST(inputdir)
54
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], [],
60     [sdkdir="$withval"],
61     [sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`])
62 AC_SUBST([sdkdir])
63
64 # Checks for libraries.
65
66 # Checks for header files.
67 AC_HEADER_STDC
68
69 DRIVER_NAME=gesture
70 AC_SUBST([DRIVER_NAME])
71
72 AC_OUTPUT([Makefile
73            src/Makefile
74            man/Makefile
75            xorg-gesture.pc])