--- gigedit/trunk/configure.ac 2016/04/29 14:19:53 2893 +++ gigedit/trunk/configure.ac 2019/02/03 13:27:28 3462 @@ -4,8 +4,8 @@ # The following is the current, official release version of gigedit: m4_define(gigedit_ver_major, 1) -m4_define(gigedit_ver_minor, 0) -m4_define(gigedit_ver_release, 0.svn6) +m4_define(gigedit_ver_minor, 1) +m4_define(gigedit_ver_release, 0.svn8) AC_INIT([gigedit], [gigedit_ver_major.gigedit_ver_minor.gigedit_ver_release]) AC_CONFIG_SRCDIR([configure.ac]) @@ -28,7 +28,7 @@ # 6. If any interfaces have been removed since the last public release, then set age # to 0. -LIBGIGEDIT_LT_CURRENT=3 +LIBGIGEDIT_LT_CURRENT=4 LIBGIGEDIT_LT_REVISION=0 LIBGIGEDIT_LT_AGE=0 @@ -70,9 +70,22 @@ AM_CONDITIONAL(WINDOWS, test "$windows" = "yes") AM_CONDITIONAL(MAC, test "$mac" = "yes") -if test "$mac" = "yes"; then - AC_PROG_OBJC -fi +# Note: even though Objective-C sources are just compiled for Mac, the +# following AC macros though must not be embedded into a shell check +# (if test "$mac" = "yes" ...), because those AC macros themselves are +# expanded before any shell code is executed, the generated configure +# code though would then not be executed and would lead to interesting +# libtool errors on non-Mac systems due to this. +AC_PROG_OBJC +# The OBJCXX macro didn't exist before autoconf 2.65, so ifdef it to +# avoid warnings on old systems. +m4_ifdef([AC_PROG_OBJCXX], [AC_PROG_OBJCXX]) + +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +PKG_CHECK_EXISTS(gtk+-3.0 >= 2.99, + [PKG_CHECK_MODULES([GTK], [gtk+-3.0])], + [PKG_CHECK_MODULES([GTK], [gtk+-2.0])]) PKG_PROG_PKG_CONFIG have_gtk3=no @@ -81,11 +94,18 @@ [PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.8 gthread-2.0 cairomm-1.0)]) AM_CONDITIONAL(HAVE_GTK3, [test "$have_gtk3" = "yes"]) +# Check for cairommconfig.h, as it was moved in cairomm 1.8.4. We only +# need it for newer versions. +gigedit_save_CPPFLAGS=$CPPFLAGS +CPPFLAGS="$GTKMM_CFLAGS $CPPFLAGS" +AC_CHECK_HEADERS([cairommconfig.h]) +CPPFLAGS=$gigedit_save_CPPFLAGS + PKG_CHECK_MODULES(SIGC, sigc++-2.0) AC_SUBST(SIGC_CFLAGS) AC_SUBST(SIGC_LIBS) -PKG_CHECK_MODULES(GIG, gig >= 4.0.0) +PKG_CHECK_MODULES(GIG, gig >= 4.1.0) AC_SUBST(GIG_CFLAGS) AC_SUBST(GIG_LIBS) @@ -95,7 +115,7 @@ AC_SUBST(SNDFILE_LIBS) # check for (optional) presence of liblinuxsampler -liblinuxsampler_version="2.0.0" +liblinuxsampler_version="2.1.0" PKG_CHECK_MODULES( LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, have_linuxsampler=1, have_linuxsampler=0 @@ -193,6 +213,7 @@ Makefile src/Makefile src/gigedit/Makefile + src/gigedit/gfx/Makefile src/plugin/Makefile gfx/Makefile po/Makefile.in