--- gigedit/trunk/configure.ac 2007/03/05 20:01:15 1072 +++ gigedit/trunk/configure.ac 2007/06/10 11:01:16 1226 @@ -1,9 +1,33 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(gigedit,0.0.3) -AC_CONFIG_SRCDIR(src/main.cpp) -AC_CONFIG_HEADERS(config.h) +#------------------------------------------------------------------------------------ +# The following is the libtool / shared library version. This doesn't have to +# do anything with the release version. It MUST conform to the following rules: +# +# 1. Start with version information of `0:0:0' for each libtool library. +# 2. Update the version information only immediately before a public release of +# your software. More frequent updates are unnecessary, and only guarantee +# that the current interface number gets larger faster. +# 3. If the library source code has changed at all since the last update, then +# increment revision (`c:r:a' becomes `c:r+1:a'). +# 4. If any interfaces have been added, removed, or changed since the last update, +# increment current, and set revision to 0. +# 5. If any interfaces have been added since the last public release, then increment +# age. +# 6. If any interfaces have been removed since the last public release, then set age +# to 0. + +LIBGIGEDIT_LT_CURRENT=0 +LIBGIGEDIT_LT_REVISION=0 +LIBGIGEDIT_LT_AGE=0 +SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE" +AC_PROG_LIBTOOL +AC_SUBST(SHLIB_VERSION_ARG) +AC_SUBST(SHARED_VERSION_INFO) +AC_CONFIG_SRCDIR(src/main.cpp) +AC_CONFIG_HEADERS(config.h) AM_INIT_AUTOMAKE GETTEXT_PACKAGE=gigedit @@ -12,15 +36,45 @@ AC_PROG_CXX -IT_PO_SUBDIR([po]) +IT_PROG_INTLTOOL(0.35.0) AM_GLIB_GNU_GETTEXT PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.6.1 gthread-2.0) -PKG_CHECK_MODULES(GIG, gig >= 3.1.0) +PKG_CHECK_MODULES(GIG, gig >= 3.1.1) + +# check for presence of libsndfile +PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2) +AC_SUBST(SNDFILE_CFLAGS) +AC_SUBST(SNDFILE_LIBS) + +# check for (optional) presence of liblinuxsampler +liblinuxsampler_version="0.4.0.5cvs" +PKG_CHECK_MODULES( + LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, + have_linuxsampler=1, have_linuxsampler=0 +) +if test "$have_linuxsampler" = "0"; then + echo "Required liblinuxsampler version not found!" + echo "You need to have liblinuxsampler version ${liblinuxsampler_version}" + echo "installed. Support for on-the-fly editing with LinuxSampler will" + echo "be disabled." +else + echo "yes, found linuxsampler $linuxsampler_version" +fi +AC_SUBST(LINUXSAMPLER_CFLAGS) +AC_SUBST(LINUXSAMPLER_LIBS) +AM_CONDITIONAL(HAVE_LINUXSAMPLER, test $have_linuxsampler = "1") +AC_DEFINE_UNQUOTED( + HAVE_LINUXSAMPLER, $have_linuxsampler, + [Define to 1 if you have LinuxSampler installed.] +) AC_CONFIG_FILES([ -Makefile -src/Makefile -po/Makefile.in + Makefile + src/Makefile + src/gigedit/Makefile + src/plugin/Makefile + po/Makefile.in + debian/Makefile ]) AC_OUTPUT