44 |
IT_PROG_INTLTOOL(0.35.0) |
IT_PROG_INTLTOOL(0.35.0) |
45 |
AM_GLIB_GNU_GETTEXT |
AM_GLIB_GNU_GETTEXT |
46 |
|
|
47 |
PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.6.1 gthread-2.0) |
PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.4.11 gthread-2.0) |
48 |
PKG_CHECK_MODULES(GIG, gig >= 3.1.1) |
PKG_CHECK_MODULES(GIG, gig >= 3.1.1) |
49 |
|
|
50 |
# check for presence of libsndfile |
# check for presence of libsndfile |
52 |
AC_SUBST(SNDFILE_CFLAGS) |
AC_SUBST(SNDFILE_CFLAGS) |
53 |
AC_SUBST(SNDFILE_LIBS) |
AC_SUBST(SNDFILE_LIBS) |
54 |
|
|
55 |
|
# check for loop functionality in libsndfile |
56 |
|
gigedit_save_CFLAGS=$CFLAGS |
57 |
|
CFLAGS="$SNDFILE_CFLAGS $CFLAGS" |
58 |
|
AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],, |
59 |
|
[AC_MSG_WARN([Your version of libsndfile does not support |
60 |
|
reading of loop information. Gigedit will not be able to |
61 |
|
extract loop information from sample files.])], |
62 |
|
[#include <sndfile.h>]) |
63 |
|
CFLAGS=$gigedit_save_CFLAGS |
64 |
|
|
65 |
# check for (optional) presence of liblinuxsampler |
# check for (optional) presence of liblinuxsampler |
66 |
liblinuxsampler_version="0.4.0.5cvs" |
liblinuxsampler_version="0.4.0.5cvs" |
67 |
PKG_CHECK_MODULES( |
PKG_CHECK_MODULES( |
68 |
LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, |
LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, |
69 |
have_linuxsampler=1, have_linuxsampler=0 |
have_linuxsampler=1, have_linuxsampler=0 |
70 |
) |
) |
71 |
|
LINUXSAMPLER_PLUGIN_DIR= |
72 |
if test "$have_linuxsampler" = "0"; then |
if test "$have_linuxsampler" = "0"; then |
73 |
echo "Required liblinuxsampler version not found!" |
echo "Required liblinuxsampler version not found!" |
74 |
echo "You need to have liblinuxsampler version ${liblinuxsampler_version}" |
echo "You need to have liblinuxsampler version ${liblinuxsampler_version}" |
75 |
echo "installed. Support for on-the-fly editing with LinuxSampler will" |
echo "installed. Support for on-the-fly editing with LinuxSampler will" |
76 |
echo "be disabled." |
echo "be disabled." |
77 |
else |
else |
78 |
echo "yes, found linuxsampler $linuxsampler_version" |
echo "Found linuxsampler $liblinuxsampler_version" |
79 |
|
echo -n "Retrieving LinuxSampler's plugin dir... " |
80 |
|
LINUXSAMPLER_PLUGIN_DIR=`pkg-config --variable plugindir linuxsampler` |
81 |
|
if test "$LINUXSAMPLER_PLUGIN_DIR" = ""; then |
82 |
|
have_linuxsampler=0 |
83 |
|
echo "Error" |
84 |
|
echo "Could not retrieve LinuxSampler's plugin directory. Support" |
85 |
|
echo "for on-the-fly editing with LinuxSampler will be disabled." |
86 |
|
else |
87 |
|
echo "${LINUXSAMPLER_PLUGIN_DIR} " |
88 |
|
fi |
89 |
fi |
fi |
90 |
AC_SUBST(LINUXSAMPLER_CFLAGS) |
AC_SUBST(LINUXSAMPLER_CFLAGS) |
91 |
AC_SUBST(LINUXSAMPLER_LIBS) |
AC_SUBST(LINUXSAMPLER_LIBS) |
92 |
|
AC_SUBST(LINUXSAMPLER_PLUGIN_DIR) |
93 |
AM_CONDITIONAL(HAVE_LINUXSAMPLER, test $have_linuxsampler = "1") |
AM_CONDITIONAL(HAVE_LINUXSAMPLER, test $have_linuxsampler = "1") |
94 |
AC_DEFINE_UNQUOTED( |
AC_DEFINE_UNQUOTED( |
95 |
HAVE_LINUXSAMPLER, $have_linuxsampler, |
HAVE_LINUXSAMPLER, $have_linuxsampler, |
103 |
src/plugin/Makefile |
src/plugin/Makefile |
104 |
po/Makefile.in |
po/Makefile.in |
105 |
debian/Makefile |
debian/Makefile |
106 |
|
doc/Makefile |
107 |
|
doc/quickstart/Makefile |
108 |
]) |
]) |
109 |
AC_OUTPUT |
AC_OUTPUT |