1
# Copyright (C) 2006 Arijit De <de.arijit@gmail.com>
3
# This file is free software; as a special exception the author gives
4
# unlimited permission to copy and/or distribute it, with or without
5
# modifications, as long as this notice is preserved.
7
# This program is distributed in the hope that it will be useful, but
8
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
AC_INIT([MusicTracker],
12
[m4_esyscmd([cat version | tr -d '\n'])],
13
[pidgin-musictracker@googlegroups.com],
15
AC_CONFIG_AUX_DIR(config)
16
AM_CONFIG_HEADER(config.h)
17
AM_INIT_AUTOMAKE([dist-bzip2])
23
[ --enable-debug compile with debugging support],,enable_debug=no)
24
if test "x$enable_debug" = "xyes" ; then
27
AC_SUBST(DEBUG_CFLAGS)
29
PKG_CHECK_MODULES([PIDGIN],[pidgin >= 2.0.0],,AC_MSG_ERROR([
30
*** Pidgin 2.0+ is required to build MusicTracker; please make sure you have the
31
*** Pidgin development files installed. The latest version of Pidgin is always
32
*** available at http://pidgin.im/.]))
33
AC_SUBST(PIDGIN_CFLAGS)
34
PIDGIN_LIBDIR=`pkg-config --variable=libdir pidgin`
35
PIDGIN_DATADIR=`pkg-config --variable=datadir pidgin`
36
AC_SUBST(PIDGIN_LIBDIR)
37
AC_SUBST(PIDGIN_DATADIR)
39
AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([
40
*** GLib 2.0 is required to build MusicTracker; please make sure you have the
41
*** GLib development headers installed. The latest version of GLib is always
42
*** available at http://www.gtk.org/.]))
46
AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([
47
*** GTK+ 2.0 is required to build MusicTracker; please make sure you have the
48
*** GTK+ development headers installed. The latest version of GTK+ is always
49
*** available at http://www.gtk.org/.]))
53
PKG_CHECK_MODULES([DBUS],[dbus-glib-1 >= 0.73],,AC_MSG_ERROR([
54
*** DBUS 0.73+ is required to build MusicTracker; please make sure you have the
55
*** DBUS development files installed. The latest version of DBUS is always
56
*** available at http://dbus.freedesktop.net/.]))
60
PKG_CHECK_MODULES([XMMSCLIENT], [xmms2-client >= 0.5],[AC_DEFINE(HAVE_XMMSCLIENT, 1, "XMMS Client")],AC_MSG_WARN([
61
*** XMMS2 is required to build XMMS2 support for MusicTracker; please make sure
62
*** you have the XMMS2 development files installed. The latest version of XMMS2
63
*** is always available at http://wiki.xmms2.xmms.se/.]))
64
AC_SUBST(XMMSCLIENT_CFLAGS)
65
AC_SUBST(XMMSCLIENT_LIBS)
67
AC_CHECK_LIB(pcre,pcre_exec,,AC_MSG_ERROR([
68
*** PCRE library is needed; please make sure you have the PCRE development
69
*** files installed. The latest version of PCRE is always available at
70
*** http://www.pcre.org/.]))