From ddb14e616a92dd945dd701a834730476af0ca361 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 5 Oct 2006 02:40:43 +0000 Subject: More build system fixes, everything now builds against the local copy if toplevel scripts are used. git-svn-id: http://svn.drobilla.net/lad/patchage@158 a436a847-0d15-0410-975c-d299462d15a1 --- configure.ac | 32 +++++++++++++------------------- src/JackDriver.h | 2 +- src/Makefile.am | 4 ++-- 3 files changed, 16 insertions(+), 22 deletions(-) diff --git a/configure.ac b/configure.ac index 6ebbbbc..ffdfec9 100644 --- a/configure.ac +++ b/configure.ac @@ -5,10 +5,9 @@ AC_CONFIG_SRCDIR([src/main.cpp]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE -# Checks for compilers -AC_PROG_CXX +AC_LANG([C++]) -# Check other stuff.. +AC_PROG_CXX AC_TYPE_SIZE_T AC_CHECK_FUNCS([strerror]) @@ -21,8 +20,6 @@ PKG_CHECK_MODULES(RAUL, raul >= 0.0.0) # Check for FlowCanvas PKG_CHECK_MODULES(FLOWCANVAS, flowcanvas >= 0.1.0) -AC_SUBST(FLOWCANVAS_CFLAGS) -AC_SUBST(FLOWCANVAS_LIBS) # Check for Jack PKG_CHECK_MODULES(JACK, jack >= 0.100.0) @@ -61,8 +58,6 @@ if test "$build_lash" = "yes"; then fi if test "$have_lash" = "yes"; then AC_DEFINE(HAVE_LASH, 1, [Has lash.h]) - AC_SUBST(LASH_CFLAGS) - AC_SUBST(LASH_LIBS) else AC_MSG_WARN([LASH not found, session support will not be built.]) fi @@ -98,22 +93,21 @@ fi CXXFLAGS="$CXXFLAGS -pipe -Wall -fmessage-length=139 -fdiagnostics-show-location=every-line" CFLAGS="$CFLAGS -pipe -Wall -fmessage-length=139 -fdiagnostics-show-location=every-line" -# Check for GTKMM PKG_CHECK_MODULES(GTKMM, gtkmm-2.4) -AC_SUBST(GTKMM_CFLAGS) -AC_SUBST(GTKMM_LIBS) - -# Check for gnomecanvasmm PKG_CHECK_MODULES(GNOMECANVASMM, libgnomecanvasmm-2.6) -AC_SUBST(GNOMECANVASMM_CFLAGS) -AC_SUBST(GNOMECANVASMM_LIBS) - -# Check for libglademm PKG_CHECK_MODULES(LIBGLADEMM, libglademm-2.4) -AC_SUBST(LIBGLADEMM_CFLAGS) -AC_SUBST(LIBGLADEMM_LIBS) -# Write it! AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([src/Makefile]) + AC_OUTPUT + +AC_MSG_RESULT([]) +AC_MSG_RESULT([**********************************************************************]) +AC_MSG_RESULT([Patchage build configuration:]) +AC_MSG_RESULT([]) +AC_MSG_RESULT([Alsa support: $ALSA_FOUND]) +AC_MSG_RESULT([Lash support: $have_lash]) +AC_MSG_RESULT([**********************************************************************]) +AC_MSG_RESULT([]) + diff --git a/src/JackDriver.h b/src/JackDriver.h index e434ffc..ece89d3 100644 --- a/src/JackDriver.h +++ b/src/JackDriver.h @@ -21,7 +21,7 @@ #include #include #include -#include "Mutex.h" +#include #include "Driver.h" class Patchage; class PatchageFlowCanvas; diff --git a/src/Makefile.am b/src/Makefile.am index 4a22449..27d23df 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,5 @@ -AM_CXXFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" @LIBGLADEMM_CFLAGS@ @GNOMECANVASMM_CFLAGS@ @JACK_CFLAGS@ @ALSA_CFLAGS@ @LASH_CFLAGS@ @FLOWCANVAS_CFLAGS@ -patchage_LDADD = @LIBGLADEMM_LIBS@ @GNOMECANVASMM_LIBS@ @JACK_LIBS@ @ALSA_LIBS@ @LASH_LIBS@ @FLOWCANVAS_LIBS@ +AM_CXXFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" @LIBGLADEMM_CFLAGS@ @GNOMECANVASMM_CFLAGS@ @JACK_CFLAGS@ @ALSA_CFLAGS@ @LASH_CFLAGS@ @FLOWCANVAS_CFLAGS@ @RAUL_CFLAGS@ +patchage_LDADD = @LIBGLADEMM_LIBS@ @GNOMECANVASMM_LIBS@ @JACK_LIBS@ @ALSA_LIBS@ @LASH_LIBS@ @FLOWCANVAS_LIBS@ @RAUL_CFLAGS@ EXTRA_DIST = patchage.gladep -- cgit v1.2.1