Add makekeys for creating keysym hash tables
[platform/upstream/libxkbcommon.git] / configure.ac
1 dnl  Copyright © 2008 Dan Nicholson
2 dnl
3 dnl  Permission to use, copy, modify, distribute, and sell this software and its
4 dnl  documentation for any purpose is hereby granted without fee, provided that
5 dnl  the above copyright notice appear in all copies and that both that
6 dnl  copyright notice and this permission notice appear in supporting
7 dnl  documentation, and that the name of Keith Packard not be used in
8 dnl  advertising or publicity pertaining to distribution of the software without
9 dnl  specific, written prior permission.  Keith Packard makes no
10 dnl  representations about the suitability of this software for any purpose.  It
11 dnl  is provided "as is" without express or implied warranty.
12 dnl
13 dnl  DAN NICHOLSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
14 dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
15 dnl  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16 dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
17 dnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 dnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 dnl  PERFORMANCE OF THIS SOFTWARE.
20 dnl
21 dnl Process this file with autoconf to create configure.
22
23 AC_PREREQ([2.57])
24 AC_INIT([libxkbcommon], [0.1.0],
25     [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg])
26 AM_INIT_AUTOMAKE([dist-bzip2 foreign])
27 AM_MAINTAINER_MODE
28
29 AC_PROG_LIBTOOL
30 AC_PROG_CC
31
32 m4_ifndef([PKG_PROG_PKG_CONFIG],
33     [m4_fatal([Could not locate the pkg-config autoconf macros.
34     These are usually located in /usr/share/aclocal/pkg.m4. If your
35     macros are in a different location, try setting the environment
36     variable ACLOCAL="aclocal -I/other/macro/dir" before running
37     autoreconf/autogen.sh.])])
38 PKG_PROG_PKG_CONFIG
39
40 dnl Build native compiler needed for makekeys
41 AC_ARG_VAR([CC_FOR_BUILD], [Build native C compiler program])
42 if test "x$CC_FOR_BUILD" != x; then
43     if test "$cross_compiling" != no; then
44         AC_PATH_PROGS([CC_FOR_BUILD], [gcc cc], [cc])
45     else
46         CC_FOR_BUILD="$CC"
47     fi
48 fi
49
50 PKG_CHECK_MODULES([X11], [xproto])
51
52 # Require xorg-macros version 1.2.0 or newer for XORG_CHANGELOG macro
53 m4_ifndef([XORG_MACROS_VERSION],
54     [m4_fatal([must install xorg-macros before running autoconf/autogen.sh])])
55 XORG_MACROS_VERSION([1.2.0])
56 XORG_RELEASE_VERSION
57 XORG_CHANGELOG
58
59 AC_OUTPUT([
60 Makefile
61 src/Makefile
62 ])