/[svn]/gigedit/trunk/configure.ac
ViewVC logotype

Diff of /gigedit/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3307 by schoenebeck, Tue Jul 11 23:06:38 2017 UTC revision 3813 by schoenebeck, Fri Aug 14 12:18:26 2020 UTC
# Line 4  dnl Process this file with autoconf to p Line 4  dnl Process this file with autoconf to p
4  # The following is the current, official release version of gigedit:  # The following is the current, official release version of gigedit:
5    
6  m4_define(gigedit_ver_major, 1)  m4_define(gigedit_ver_major, 1)
7  m4_define(gigedit_ver_minor, 0)  m4_define(gigedit_ver_minor, 1)
8  m4_define(gigedit_ver_release, 0.svn57)  m4_define(gigedit_ver_release, 1.svn30)
9    
10  AC_INIT([gigedit], [gigedit_ver_major.gigedit_ver_minor.gigedit_ver_release])  AC_INIT([gigedit], [gigedit_ver_major.gigedit_ver_minor.gigedit_ver_release])
11  AC_CONFIG_SRCDIR([configure.ac])  AC_CONFIG_SRCDIR([configure.ac])
# Line 28  AC_CONFIG_AUX_DIR([.]) Line 28  AC_CONFIG_AUX_DIR([.])
28  #  6. If any interfaces have been removed since the last public release, then set age  #  6. If any interfaces have been removed since the last public release, then set age
29  #     to 0.  #     to 0.
30    
31  LIBGIGEDIT_LT_CURRENT=3  LIBGIGEDIT_LT_CURRENT=4
32  LIBGIGEDIT_LT_REVISION=0  LIBGIGEDIT_LT_REVISION=0
33  LIBGIGEDIT_LT_AGE=0  LIBGIGEDIT_LT_AGE=0
34    
# Line 70  esac Line 70  esac
70  AM_CONDITIONAL(WINDOWS, test "$windows" = "yes")  AM_CONDITIONAL(WINDOWS, test "$windows" = "yes")
71  AM_CONDITIONAL(MAC, test "$mac" = "yes")  AM_CONDITIONAL(MAC, test "$mac" = "yes")
72    
73    # make sure C++11 is supported by compiler
74    # (add CXXFLAGS if required [e.g. -std=c++11])
75    m4_ifdef([m4_include(m4/ax_cxx_compile_stdcxx.m4)],,
76                 [sinclude([m4/ax_cxx_compile_stdcxx.m4])])
77    AX_CXX_COMPILE_STDCXX(11, [], mandatory)
78    
79  # Note: even though Objective-C sources are just compiled for Mac, the  # Note: even though Objective-C sources are just compiled for Mac, the
80  # following AC macros though must not be embedded into a shell check  # following AC macros though must not be embedded into a shell check
81  # (if test "$mac" = "yes" ...), because those AC macros themselves are  # (if test "$mac" = "yes" ...), because those AC macros themselves are
# Line 77  AM_CONDITIONAL(MAC, test "$mac" = "yes") Line 83  AM_CONDITIONAL(MAC, test "$mac" = "yes")
83  # code though would then not be executed and would lead to interesting  # code though would then not be executed and would lead to interesting
84  # libtool errors on non-Mac systems due to this.  # libtool errors on non-Mac systems due to this.
85  AC_PROG_OBJC  AC_PROG_OBJC
86  AC_PROG_OBJCXX  # The OBJCXX macro didn't exist before autoconf 2.65, so ifdef it to
87    # avoid warnings on old systems.
88    m4_ifdef([AC_PROG_OBJCXX], [AC_PROG_OBJCXX])
89    
90    m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
91    
92  PKG_CHECK_EXISTS(gtk+-3.0 >= 2.99,  PKG_CHECK_EXISTS(gtk+-3.0 >= 2.99,
93          [PKG_CHECK_MODULES([GTK], [gtk+-3.0])],          [PKG_CHECK_MODULES([GTK], [gtk+-3.0])],
# Line 90  PKG_CHECK_EXISTS(gtkmm-3.0 >= 2.99, Line 100  PKG_CHECK_EXISTS(gtkmm-3.0 >= 2.99,
100          [PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.8 gthread-2.0 cairomm-1.0)])          [PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.8 gthread-2.0 cairomm-1.0)])
101  AM_CONDITIONAL(HAVE_GTK3, [test "$have_gtk3" = "yes"])  AM_CONDITIONAL(HAVE_GTK3, [test "$have_gtk3" = "yes"])
102    
103    # Check for cairommconfig.h, as it was moved in cairomm 1.8.4. We only
104    # need it for newer versions.
105    gigedit_save_CPPFLAGS=$CPPFLAGS
106    CPPFLAGS="$GTKMM_CFLAGS $CPPFLAGS"
107    AC_CHECK_HEADERS([cairommconfig.h])
108    CPPFLAGS=$gigedit_save_CPPFLAGS
109    
110  PKG_CHECK_MODULES(SIGC, sigc++-2.0)  PKG_CHECK_MODULES(SIGC, sigc++-2.0)
111  AC_SUBST(SIGC_CFLAGS)  AC_SUBST(SIGC_CFLAGS)
112  AC_SUBST(SIGC_LIBS)  AC_SUBST(SIGC_LIBS)
113    
114  PKG_CHECK_MODULES(GIG, gig >= 4.0.0)  PKG_CHECK_MODULES(GIG, gig >= 4.2.0)
115  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
116  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
117    
# Line 104  AC_SUBST(SNDFILE_CFLAGS) Line 121  AC_SUBST(SNDFILE_CFLAGS)
121  AC_SUBST(SNDFILE_LIBS)  AC_SUBST(SNDFILE_LIBS)
122    
123  # check for (optional) presence of liblinuxsampler  # check for (optional) presence of liblinuxsampler
124  liblinuxsampler_version="2.0.0"  liblinuxsampler_version="2.1.1"
125  PKG_CHECK_MODULES(  PKG_CHECK_MODULES(
126      LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version,      LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version,
127      have_linuxsampler=1, have_linuxsampler=0      have_linuxsampler=1, have_linuxsampler=0

Legend:
Removed from v.3307  
changed lines
  Added in v.3813

  ViewVC Help
Powered by ViewVC