configure.ac 1.87 KB
Newer Older
1
AC_INIT([gnome-break-timer],
Dylan McCall's avatar
Dylan McCall committed
2
	[1.1],
3
	[http://bugs.launchpad.net/brainbreak],
4
	[gnome-break-timer],
Mathieu Bridon's avatar
Mathieu Bridon committed
5
	[https://wiki.gnome.org/Apps/GnomeBreakTimer])
6 7 8 9 10 11 12 13 14
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign])
LT_INIT
AM_MAINTAINER_MODE
AC_CONFIG_HEADERS([config.h])

AC_PATH_PROG(VALAC, valac, valac)
AC_SUBST(VALAC)

15 16
AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)

17 18 19 20 21 22 23 24 25 26 27 28 29
IT_PROG_INTLTOOL(0.40)
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])

GLIB_GSETTINGS

AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

30
GLIB_REQUIRED=2.36.0
31
GTK_REQUIRED=3.10.0
32

33
PKG_CHECK_MODULES([CFG_CORE], [
34 35
	glib-2.0 >= $GLIB_REQUIRED
	gobject-2.0 >= $GLIB_REQUIRED
36 37 38 39
	gee-1.0 >= 0.6.2
	gio-2.0 >= 2.30.0
	gio-unix-2.0 >= 2.30.0
	gtk+-3.0 >= $GTK_REQUIRED
40
	json-glib-1.0 >= 0.16.0
41 42
])

43
PKG_CHECK_MODULES([CFG_HELPER], [
44
	libcanberra >= 0.28
45
	libcanberra-gtk3 >= 0.28
46
	libnotify >= 0.4.5
47 48
])

49
PKG_CHECK_MODULES([CFG_SETTINGS], [
50
	cairo >= 1.12.14
51 52
])

53
PKG_CHECK_MODULES([CFG_ACTIVITY_MONITOR], [
54 55 56
	gdk-x11-3.0 >= $GTK_REQUIRED
])

57
PKG_CHECK_MODULES([CFG_ACTIVITY_MONITOR_BACKEND], [
58 59 60 61
	x11 >= 1.4.99.1
	xi >= 1.5.99.3
	xtst >= 1.2.0
])
62 63

PKG_CHECK_MODULES(
64
	[CFG_GTK], [gtk+-3.0 >= $GTK_REQUIRED], [GTK_MIN_VERSION=3.10]
65 66
)

67 68 69 70 71 72 73


# Some helpful constants that are available to the application

AC_DEFINE(SETTINGS_DESKTOP_ID, "gnome-break-timer.desktop", [Name of the .desktop file used for the settings application])
AC_DEFINE(HELPER_DESKTOP_ID, "gnome-break-timer-service.desktop", [Name of the .desktop file used for the helper service])

Dylan McCall's avatar
Dylan McCall committed
74

75

76 77 78 79 80 81 82
AC_CONFIG_FILES([Makefile
	common/Makefile
	settings/Makefile
	helper/Makefile
	helper/activity-monitor/Makefile
	helper/util/Makefile
	data/Makefile
83
	data/icons/Makefile
84 85 86
	po/Makefile.in
	tests/Makefile
])
87 88

AC_OUTPUT