gmpc-tagedit version 0.19.100
[gmpc-tagedit.git] / configure.ac
blobd8ecafd27444e91b276b40dedc6479bebf98cdf9
1 AC_INIT([gmpc-tagedit], [0.19.100], [qball@sarine.nl])
2 m4_define([package_major_version], [0])
3 m4_define([package_minor_version], [19])
4 m4_define([package_micro_version], [100])
5 m4_define([package_version],[package_major_version.package_minor_version.package_micro_version])
7 AC_PREREQ(2.58)
8 # so in metapackage it builds standalone
9 AC_CONFIG_AUX_DIR([.])
10 AM_CONFIG_HEADER([config.h])
11 AM_INIT_AUTOMAKE
13 AC_DEFINE(PLUGIN_MAJOR_VERSION, package_major_version, ["Major version of plugin"])
14 AC_DEFINE(PLUGIN_MINOR_VERSION, package_minor_version, ["Minor version of plugin"])
15 AC_DEFINE(PLUGIN_MICRO_VERSION, package_micro_version, ["Micro version of plugin"])
17 AC_PROG_CC
18 AM_DISABLE_STATIC
19 AC_LIBTOOL_DLOPEN
20 AC_PROG_LIBTOOL
22 #intltool, libtool. Check for CC compiler
23 AC_PROG_INTLTOOL([0.21])
25 # i18n support
26 dnl please keep them in alphabetical order
27 ALL_LINGUAS="bg bs de es fr it ja nb nl pl ro ru sv zh_CN"
29 GETTEXT_PACKAGE=gmpc-tagedit
30 AC_SUBST(GETTEXT_PACKAGE)
31 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[GMPC_TAGEDIT gettext package])
32 AM_GLIB_GNU_GETTEXT
35 if test "x${prefix}" = "xNONE"; then
36         PACKAGE_PREFIX="${ac_default_prefix}"
37 else
38         PACKAGE_PREFIX="${prefix}"
40 AC_MSG_RESULT($PACKAGE_PREFIX)
41 PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale"
42 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR,"$PACKAGE_LOCALE_DIR",[The package's locale path for gettext])
44 GOB2_CHECK([2.0.10])
45 # Make the gob2 check fatal
46 if test x${GOB2} = x""; then
47         exit 0;
50 PKG_CHECK_MODULES([gmpctagedit],[       glib-2.0 >= 2.16
51         gobject-2.0 >= 2.4
52         gtk+-2.0 >= 2.8
53         gmodule-2.0
54         libxml-2.0
55         gthread-2.0
56         libmpd >= 0.15.98
57         gmpc    >= 0.16.2
58     taglib_c
61 AC_SUBST(gmpctagedit_LIBS)
62 AC_SUBST(gmpctagedit_CFLAGS)
65 AC_OUTPUT([Makefile src/Makefile po/Makefile.in])