~ubuntu-branches/ubuntu/karmic/pidgin-musictracker/karmic

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Craig Small
  • Date: 2008-11-03 10:24:23 UTC
  • Revision ID: james.westby@ubuntu.com-20081103102423-36ndksn1tdwg96xm
Tags: upstream-0.4.11
ImportĀ upstreamĀ versionĀ 0.4.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2006 Arijit De <de.arijit@gmail.com>
 
2
#  
 
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.
 
6
 
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.
 
10
 
 
11
AC_INIT([MusicTracker],
 
12
        [m4_esyscmd([cat version | tr -d '\n'])],
 
13
        [pidgin-musictracker@googlegroups.com],
 
14
        [musictracker])
 
15
AC_CONFIG_AUX_DIR(config)
 
16
AM_CONFIG_HEADER(config.h)
 
17
AM_INIT_AUTOMAKE([dist-bzip2])
 
18
 
 
19
AC_PROG_CC
 
20
AC_PROG_LIBTOOL
 
21
 
 
22
AC_ARG_ENABLE(debug,
 
23
[  --enable-debug          compile with debugging support],,enable_debug=no)
 
24
if test "x$enable_debug" = "xyes" ; then
 
25
        DEBUG_CFLAGS="-g -O0"
 
26
fi
 
27
AC_SUBST(DEBUG_CFLAGS)
 
28
 
 
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)
 
38
 
 
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/.]))
 
43
AC_SUBST(GLIB_LIBS)
 
44
AC_SUBST(GLIB_CFLAGS)
 
45
 
 
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/.]))
 
50
AC_SUBST(GTK_LIBS)
 
51
AC_SUBST(GTK_CFLAGS)
 
52
 
 
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/.]))
 
57
AC_SUBST(DBUS_CFLAGS)
 
58
AC_SUBST(DBUS_LIBS)
 
59
 
 
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)
 
66
 
 
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/.]))
 
71
 
 
72
AC_CONFIG_FILES([
 
73
   Makefile
 
74
   README
 
75
   doc/Makefile
 
76
   m4/Makefile
 
77
   src/Makefile
 
78
   installer/Makefile
 
79
])
 
80
 
 
81
AC_OUTPUT