Update and add translations from launchpad
[gmpc-fullscreeninfo.git] / configure.ac
blob1081a82cd008c94258cfb5068cdbfdf7ca174208
1 m4_define([package_major_version], [0])
2 m4_define([package_minor_version], [0])
3 m4_define([package_micro_version], [1])
4 m4_define([package_version],[package_major_version.package_minor_version.package_micro_version])
6 AC_INIT(src)
7 AC_CONFIG_AUX_DIR([.])
8 AM_CONFIG_HEADER([config.h])
9 AM_INIT_AUTOMAKE([gmpc-fullscreeninfo], [package_version],qball@qballcow.nl)
11 AC_DEFINE(PLUGIN_MAJOR_VERSION, package_major_version, ["Major version of plugin"])
12 AC_DEFINE(PLUGIN_MINOR_VERSION, package_minor_version, ["Minor version of plugin"])
13 AC_DEFINE(PLUGIN_MICRO_VERSION, package_micro_version, ["Micro version of plugin"])
15 AC_PROG_CC
16 AM_DISABLE_STATIC
17 AC_LIBTOOL_DLOPEN
18 AC_PROG_LIBTOOL
20 #intltool, libtool. Check for CC compiler
21 AC_PROG_INTLTOOL([0.21])
23 # i18n support
24 dnl please keep them in alphabetical order
25 ALL_LINGUAS="bg bs de es ga hu nb nl pl ro ru sq sv zh_CN"
27 GETTEXT_PACKAGE=gmpc-fullscreeninfo
28 AC_SUBST(GETTEXT_PACKAGE)
29 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[GMPC_FULLSCREENINFO gettext package])
30 AM_GLIB_GNU_GETTEXT
33 if test "x${prefix}" = "xNONE"; then
34         PACKAGE_PREFIX="${ac_default_prefix}"
35 else
36         PACKAGE_PREFIX="${prefix}"
38 AC_MSG_RESULT($PACKAGE_PREFIX)
39 PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale"
40 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR,"$PACKAGE_LOCALE_DIR",[The package's locale path for gettext])
42 PKG_CHECK_MODULES([gmpcfullscreeninfo],
44         glib-2.0 >= 2.10
45         gobject-2.0 >= 2.4
46         gtk+-2.0 >= 2.8
47         gmodule-2.0
48         cairo
49         libxml-2.0
50         libmpd >= 0.17.0
51     gmpc >= 0.18.1
52     ])
53 AC_SUBST(gmpcfullscreeninfo_LIBS)
54 AC_SUBST(gmpcfullscreeninfo_CFLAGS)
57 AC_OUTPUT([Makefile src/Makefile po/Makefile.in])