configure.ac 2.45 KB
Newer Older
1
2
3
4
dnl Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])

José Aliste's avatar
José Aliste committed
5
m4_define(gedit_latex_major_version,  3)
José Aliste's avatar
José Aliste committed
6
m4_define(gedit_latex_minor_version,  2)
José Aliste's avatar
José Aliste committed
7
m4_define(gedit_latex_micro_version,  1)
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
m4_define(gedit_latex_version, gedit_latex_major_version.gedit_latex_minor_version.gedit_latex_micro_version)

AC_INIT([gedit-latex],
        [gedit_latex_version],
        [http://bugzilla.gnome.org/enter_bug.cgi?product=gedit],
        [gedit-latex])

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([latex])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_PREFIX_PROGRAM([gedit])

AM_INIT_AUTOMAKE([1.11 tar-ustar dist-xz no-dist-gzip])
AM_MAINTAINER_MODE([enable])

AM_SILENT_RULES([yes])

# Check for programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET

AM_PATH_PYTHON

# Initialize libtool
LT_PREREQ([2.2])
LT_INIT([disable-static])

# ================================================================
# Gettext stuff.
# ================================================================
IT_PROG_INTLTOOL([0.40.0])

AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external])

GETTEXT_PACKAGE=gedit-latex
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])

# ================================================================
# Start of pkg-config checks
# ================================================================

PKG_CHECK_MODULES(GEDIT, [
	glib-2.0 >= 2.26.0
	gio-2.0 >= 2.26.0
	gtk+-3.0 >= 3.0.0
])

John Stowers's avatar
John Stowers committed
59
60
61
# ================================================================
# GSettings stuff
# ================================================================
62
63
64
65
66
67
68
69
70
71

GLIB_GSETTINGS

# ================================================================
# Misc
# ================================================================
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)

AC_CONFIG_FILES([
Makefile
72
data/Makefile
73
74
75
data/icons/Makefile
data/templates/Makefile
data/ui/Makefile
76
data/org.gnome.gedit.plugins.latex.gschema.xml.in
77
latex.plugin.desktop.in
78
latex/gldefs.py
79
80
81
82
83
84
85
latex/Makefile
latex/base/Makefile
latex/bibtex/Makefile
latex/latex/Makefile
latex/preferences/Makefile
latex/tools/Makefile
latex/util/Makefile
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
po/Makefile.in])

AC_OUTPUT

echo "

Configuration:

	Source code location:   ${srcdir}
	Compiler:               ${CC}
	Prefix:			${prefix}

Note: you have to install this plugin into the same prefix as your gedit
installation (probably /usr if you're using your distro packages, /usr/local
if you have compiled it on your own).
"