Reload when db changed
[gmpc-albumview.git] / configure.ac
bloba2eb5acb98c3831b2a93040ef0df7f919ded8171
1 AC_INIT([gmpc-albumview], [0.19.95], [qball@sarine.nl])
2 m4_define([package_major_version], [0])
3 m4_define([package_minor_version], [19])
4 m4_define([package_micro_version], [95])
5 m4_define([package_version],[package_major_version.package_minor_version.package_micro_version])
7 AC_PREREQ(2.59)
8 AC_CONFIG_AUX_DIR([.])
9 AM_CONFIG_HEADER([config.h])
10 AM_INIT_AUTOMAKE
12 AC_DEFINE(PLUGIN_MAJOR_VERSION, package_major_version, ["Major version of plugin"])
13 AC_DEFINE(PLUGIN_MINOR_VERSION, package_minor_version, ["Minor version of plugin"])
14 AC_DEFINE(PLUGIN_MICRO_VERSION, package_micro_version, ["Micro version of plugin"])
16 # i18n support
17 #intltool, libtool. Check for CC compiler
18 AC_PROG_INTLTOOL([0.21])
19 dnl please keep them in alphabetical order
20 ALL_LINGUAS=
22 GETTEXT_PACKAGE=gmpc-albumview
23 AC_SUBST(GETTEXT_PACKAGE)
24 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[GMPC_LAST.FM gettext package])
25 AM_GLIB_GNU_GETTEXT
28 if test "x${prefix}" = "xNONE"; then
29         PACKAGE_PREFIX="${ac_default_prefix}"
30 else
31         PACKAGE_PREFIX="${prefix}"
33 AC_MSG_RESULT($PACKAGE_PREFIX)
34 PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale"
35 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR,"$PACKAGE_LOCALE_DIR",[The package's locale path for gettext])
38 AC_PROG_CC
39 AM_DISABLE_STATIC
40 AC_LIBTOOL_DLOPEN
41 AC_PROG_LIBTOOL
43 PKG_CHECK_MODULES([gmpcalbumview],[     glib-2.0 >= 2.10
44         gobject-2.0 >= 2.4
45         gtk+-2.0 >= 2.8
46         gmodule-2.0
47         libmpd >= 0.15.98
48         gmpc    >= 0.19.2
51 AC_SUBST(gmpcalbumview_LIBS)
52 AC_SUBST(gmpcalbumview_CFLAGS)
55 AC_OUTPUT([Makefile src/Makefile po/Makefile.in ])