forked from whot/mtview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
45 lines (36 loc) · 1.08 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Initialize Autoconf
AC_PREREQ([2.60])
AC_INIT([Multitouch Viewer],
[2.0.0],
[],
[mtview])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([config-aux])
# Initialize Automake
AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2])
AM_MAINTAINER_MODE([enable])
LIB_VERSION=1:0:0
AC_SUBST([LIB_VERSION])
# Initialize libtool
AC_PROG_LIBTOOL
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
LT_LIB_M
PKG_CHECK_MODULES([MTDEV], [mtdev >= 1.1])
PKG_CHECK_MODULES([EVEMU], [evemu >= 1.0.10])
PKG_CHECK_MODULES([X11], [x11 xi])
PKG_CHECK_MODULES([CAIRO], [cairo])
AC_ARG_VAR([XMLTO], [Path to xmlto command])
AC_PATH_PROG([XMLTO], [xmlto])
AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
AC_PATH_PROG([ASCIIDOC], [asciidoc])
AM_CONDITIONAL([HAVE_DOCTOOLS], [test "x$XMLTO" != "x" && test "x$ASCIIDOC" != "x"])
if test "x$XMLTO" = "x" || test "x$ASCIIDOC" = "x"; then
AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it])
fi
AC_CONFIG_FILES([Makefile
tools/Makefile
man/Makefile])
AC_OUTPUT