configure.ac 1.16 KB
Newer Older
John Stowers's avatar
John Stowers committed
1
AC_INIT([gnome-tweak-tool], [3.5.5], [john.stowers@gmail.com])
John Stowers's avatar
John Stowers committed
2

John Stowers's avatar
John Stowers committed
3
AM_INIT_AUTOMAKE([foreign tar-ustar dist-xz no-dist-gzip])
John Stowers's avatar
John Stowers committed
4

5
AM_PATH_PYTHON([2.6])
John Stowers's avatar
John Stowers committed
6 7
GLIB_GSETTINGS

John Stowers's avatar
John Stowers committed
8 9
DESKTOP_SCHEMAS_REQUIRED_VERSION=3.4.0
PYGOBJECT_REQUIRED_VERSION=3.2.1
John Stowers's avatar
John Stowers committed
10

11
PKG_CHECK_MODULES([GSETTINGS_DESKTOP_SCHEMAS], [gsettings-desktop-schemas >= $DESKTOP_SCHEMAS_REQUIRED_VERSION])
12
PKG_CHECK_MODULES([PYGOBJECT3], [pygobject-3.0 >= $PYGOBJECT_REQUIRED_VERSION],,
13
    [PKG_CHECK_MODULES([PYGOBJECT2], [pygobject-2.0 >= 2.28.0])])
John Stowers's avatar
John Stowers committed
14

15 16 17 18 19
AC_CHECK_PROG(GCONFTOOL,gconftool-2,gconftool-2,no)
if test "$GCONFTOOL" = no ; then
	AC_MSG_ERROR(Cannot find gconftool-2)
fi

Kjartan Maraas's avatar
Kjartan Maraas committed
20 21 22
IT_PROG_INTLTOOL([0.40.0])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])
John Stowers's avatar
John Stowers committed
23 24 25
GETTEXT_PACKAGE=gnome-tweak-tool
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
26

John Stowers's avatar
John Stowers committed
27 28 29 30
AS_AC_EXPAND(DATADIR, "${datadir}")
AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
AS_AC_EXPAND(GSETTINGSSCHEMADIR, "${gsettingsschemadir}")
AS_AC_EXPAND(TWEAKDIR, "${pythondir}/gtweak/tweaks")
John Stowers's avatar
John Stowers committed
31
AS_AC_EXPAND(LOCALEDIR, "${localedir}")
John Stowers's avatar
John Stowers committed
32

33
AC_CONFIG_FILES([ po/Makefile.in
John Stowers's avatar
John Stowers committed
34
Makefile
35
data/Makefile
John Stowers's avatar
John Stowers committed
36
data/icons/Makefile
John Stowers's avatar
John Stowers committed
37 38 39
gtweak/defs.py
])
AC_OUTPUT