forked from GNOME-MouseTrap/mousetrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
95 lines (73 loc) · 2.24 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
AC_INIT(ChangeLog)
CURRENT_DIR=$PWD
MOUSETRAP_VERSION=0.4
AM_INIT_AUTOMAKE(mousetrap, $MOUSETRAP_VERSION)
AC_SUBST(MOUSETRAP_VERSION)
AC_SUBST(CURRENT_DIR)
# libtool versioning
LT_CURRENT=0
LT_REVISION=0
LT_AGE=0
LT_VERSION_INFO='-version-info ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}'
AC_SUBST(LT_VERSION_INFO)
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
dnl Specify a header configuration file
AM_CONFIG_HEADER(config.h)
dnl Initialize maintainer mode
AM_MAINTAINER_MODE
dnl Gettext stuff
GETTEXT_PACKAGE=mousetrap
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.40.0])
dnl Checks for programs
AC_PROG_CC
AC_PROG_INSTALL
AC_ISC_POSIX
dnl Initialize libtool
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
# Check for Python
AM_PATH_PYTHON(2.6)
# Find the headers needed to build extensions
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(Could not find python headers needed to build Python extensions)])
# Find the modules used by mousetrap
AM_CHECK_PYMOD(gettext,,,[AC_MSG_ERROR(Could not find python module gettext)])
AM_CHECK_PYMOD(getopt,,,[AC_MSG_ERROR(Could not find python module getopt)])
AM_CHECK_PYMOD(cv2,,,[AC_MSG_ERROR(Could not find python module cv2)])
AM_CONDITIONAL(WITH_LOUIS, test x$have_liblouis = "xyes")
AC_SUBST(mousetrap_LIBS)
AC_SUBST(mousetrap_CFLAGS)
PYDOC_CHECK()
DOXYGEN_CHECK()
DOCBOOK_CHECK()
#mousetrap.spec
AC_OUTPUT([
Makefile
mousetrap.desktop
po/Makefile.in
docs/Makefile
docs/man/Makefile
docs/pydoc/Makefile
docs/docbook/Makefile
docs/doxygen/Makefile
docs/doxygen/Doxyfile
images/Makefile
src/Makefile
src/mousetrap/Makefile
],[])
###############################################################################
# Don't include src/mousetrap/app/mousetrap.in in AC_OUTPUT. It will be
# processed by make (see src/mousetrap/app/Makefile.am), not by autoconf or
# automake. For more information read
# http://www.gnu.org/software/autoconf/manual/autoconf.html#Installation-Directory-Variables
#
# Other files may require this same "fix" (e.g., i18n.py, environment.py,
# mousetrap.desktop).
#
# - Stoney Jackson, [email protected], 10/10/2013
###############################################################################