1 |
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(gigedit,0.0.3) |
AC_INIT(gigedit,0.0.3) |
3 |
|
AC_CONFIG_AUX_DIR([.]) |
4 |
|
|
5 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
6 |
# The following is the libtool / shared library version. This doesn't have to |
# The following is the libtool / shared library version. This doesn't have to |
40 |
AC_SUBST([GETTEXT_PACKAGE]) |
AC_SUBST([GETTEXT_PACKAGE]) |
41 |
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) |
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) |
42 |
|
|
43 |
|
# the libgig header files need this |
44 |
|
AC_C_BIGENDIAN |
45 |
|
|
46 |
AC_PROG_CXX |
AC_PROG_CXX |
47 |
|
|
48 |
IT_PROG_INTLTOOL(0.35.0) |
IT_PROG_INTLTOOL(0.35.0) |
49 |
AM_GLIB_GNU_GETTEXT |
AM_GLIB_GNU_GETTEXT |
50 |
|
|
51 |
PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.6.1 gthread-2.0) |
PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.4.10 gthread-2.0) |
52 |
PKG_CHECK_MODULES(GIG, gig >= 3.1.1) |
PKG_CHECK_MODULES(GIG, gig >= 3.1.1) |
53 |
|
|
54 |
# check for presence of libsndfile |
# check for presence of libsndfile |
56 |
AC_SUBST(SNDFILE_CFLAGS) |
AC_SUBST(SNDFILE_CFLAGS) |
57 |
AC_SUBST(SNDFILE_LIBS) |
AC_SUBST(SNDFILE_LIBS) |
58 |
|
|
59 |
|
# check for loop functionality in libsndfile |
60 |
|
gigedit_save_CFLAGS=$CFLAGS |
61 |
|
CFLAGS="$SNDFILE_CFLAGS $CFLAGS" |
62 |
|
AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],, |
63 |
|
[AC_MSG_WARN([Your version of libsndfile does not support |
64 |
|
reading of loop information. Gigedit will not be able to |
65 |
|
extract loop information from sample files.])], |
66 |
|
[#include <sndfile.h>]) |
67 |
|
CFLAGS=$gigedit_save_CFLAGS |
68 |
|
|
69 |
# check for (optional) presence of liblinuxsampler |
# check for (optional) presence of liblinuxsampler |
70 |
liblinuxsampler_version="0.4.0.5cvs" |
liblinuxsampler_version="0.4.0.5cvs" |
71 |
PKG_CHECK_MODULES( |
PKG_CHECK_MODULES( |
72 |
LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, |
LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, |
73 |
have_linuxsampler=1, have_linuxsampler=0 |
have_linuxsampler=1, have_linuxsampler=0 |
74 |
) |
) |
75 |
|
LINUXSAMPLER_PLUGIN_DIR= |
76 |
if test "$have_linuxsampler" = "0"; then |
if test "$have_linuxsampler" = "0"; then |
77 |
echo "Required liblinuxsampler version not found!" |
echo "Required liblinuxsampler version not found!" |
78 |
echo "You need to have liblinuxsampler version ${liblinuxsampler_version}" |
echo "You need to have liblinuxsampler version ${liblinuxsampler_version}" |
79 |
echo "installed. Support for on-the-fly editing with LinuxSampler will" |
echo "installed. Support for on-the-fly editing with LinuxSampler will" |
80 |
echo "be disabled." |
echo "be disabled." |
81 |
else |
else |
82 |
echo "yes, found linuxsampler $linuxsampler_version" |
echo "Found linuxsampler $liblinuxsampler_version" |
83 |
|
echo -n "Retrieving LinuxSampler's plugin dir... " |
84 |
|
LINUXSAMPLER_PLUGIN_DIR=`pkg-config --variable plugindir linuxsampler` |
85 |
|
if test "$LINUXSAMPLER_PLUGIN_DIR" = ""; then |
86 |
|
have_linuxsampler=0 |
87 |
|
echo "Error" |
88 |
|
echo "Could not retrieve LinuxSampler's plugin directory. Support" |
89 |
|
echo "for on-the-fly editing with LinuxSampler will be disabled." |
90 |
|
else |
91 |
|
echo "${LINUXSAMPLER_PLUGIN_DIR} " |
92 |
|
# convert absolute LS plugin dir into relative dir |
93 |
|
# (see ch 27.10 of the automake manual, |
94 |
|
# "Installing to Hard-Coded Locations") |
95 |
|
LINUXSAMPLER_PLUGIN_DIR=`echo "${LINUXSAMPLER_PLUGIN_DIR}" | sed 's/^.*\/lib\//\${libdir}\//g'` |
96 |
|
echo "Relative plugin dir: ${LINUXSAMPLER_PLUGIN_DIR}" |
97 |
|
fi |
98 |
fi |
fi |
99 |
AC_SUBST(LINUXSAMPLER_CFLAGS) |
AC_SUBST(LINUXSAMPLER_CFLAGS) |
100 |
AC_SUBST(LINUXSAMPLER_LIBS) |
AC_SUBST(LINUXSAMPLER_LIBS) |
101 |
|
AC_SUBST(LINUXSAMPLER_PLUGIN_DIR) |
102 |
AM_CONDITIONAL(HAVE_LINUXSAMPLER, test $have_linuxsampler = "1") |
AM_CONDITIONAL(HAVE_LINUXSAMPLER, test $have_linuxsampler = "1") |
103 |
AC_DEFINE_UNQUOTED( |
AC_DEFINE_UNQUOTED( |
104 |
HAVE_LINUXSAMPLER, $have_linuxsampler, |
HAVE_LINUXSAMPLER, $have_linuxsampler, |
112 |
src/plugin/Makefile |
src/plugin/Makefile |
113 |
po/Makefile.in |
po/Makefile.in |
114 |
debian/Makefile |
debian/Makefile |
115 |
|
doc/Makefile |
116 |
|
doc/quickstart/Makefile |
117 |
]) |
]) |
118 |
AC_OUTPUT |
AC_OUTPUT |