-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
86 lines (63 loc) · 2.05 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
# Process this file with autoconf to produce a configure script.
GEDIT_MAJOR=2.29.1
GEDIT_DEVHELP_PLUGIN_MAJOR=0.0.1
AC_INIT(gedit-devhelp-plugin, 0.0.1, http://bugzilla.gnome.org/enter_bug.cgi?product=gedit)
AC_CONFIG_SRCDIR([devhelp])
AC_CONFIG_MACRO_DIR([m4])
AC_PREFIX_PROGRAM([gedit-devhelp-plugin])
AC_SUBST(GEDIT_PLUGINS_MAJOR)
AC_PREREQ(2.59)
AM_INIT_AUTOMAKE([1.8 dist-bzip2 no-dist-gzip])
AM_MAINTAINER_MODE
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_HEADERS([config.h])
AC_DISABLE_STATIC
IT_PROG_INTLTOOL([0.35.0])
AC_PROG_LIBTOOL
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
# make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4")
# ================================================================
# Gettext stuff.
# ================================================================
GETTEXT_PACKAGE=gedit-devhelp-plugin
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT
# ================================================================
# Start of pkg-config checks
# ================================================================
PKG_CHECK_MODULES(GEDIT_DEVHELP_PLUGIN, [
glib-2.0 >= 2.16.0
gtk+-2.0 >= 2.16.0
gtksourceview-2.0 >= 2.9.1
gedit-2.20 >= 2.29.1
libdevhelp-1.0 >= 0.22
webkit-1.0
])
AC_SUBST(GEDIT_DEVHELP_PLUGIN_LIBS)
AC_SUBST(GEDIT_DEVHELP_PLUGIN_CFLAGS)
AC_ARG_ENABLE(deprecations,
[AC_HELP_STRING([--enable-deprecations],
[warn about deprecated usages [default=no]])],,
[enable_deprecations=no])
if test "x$enable_deprecations" = "xyes"
then
DISABLE_DEPRECATED_CFLAGS="\
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DGDK_PIXBUF_DISABLE_DEPRECATED \
-DGNOME_DISABLE_DEPRECATED"
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
fi
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version"
AC_SUBST(PLUGIN_LIBTOOL_FLAGS)
AC_CONFIG_FILES([
Makefile
devhelp/Makefile
po/Makefile.in])
AC_OUTPUT