forked from GNOME/gedit-latex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
101 lines (77 loc) · 2.43 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
96
97
98
99
100
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
m4_define(gedit_latex_major_version, 3)
m4_define(gedit_latex_minor_version, 8)
m4_define(gedit_latex_micro_version, 0)
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
])
# ================================================================
# GSettings stuff
# ================================================================
GLIB_GSETTINGS
# ================================================================
# Misc
# ================================================================
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
AC_CONFIG_FILES([
Makefile
data/Makefile
data/icons/Makefile
data/templates/Makefile
data/ui/Makefile
data/org.gnome.gedit.plugins.latex.gschema.xml.in
latex.plugin.desktop.in
latex/gldefs.py
latex/Makefile
latex/bibtex/Makefile
latex/latex/Makefile
latex/preferences/Makefile
latex/tools/Makefile
latex/util/Makefile
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).
"