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.svn31) |
m4_define(gigedit_ver_release, 1.svn1) |
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]) |
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 |
|
|
77 |
# code though would then not be executed and would lead to interesting |
# code though would then not be executed and would lead to interesting |
78 |
# libtool errors on non-Mac systems due to this. |
# libtool errors on non-Mac systems due to this. |
79 |
AC_PROG_OBJC |
AC_PROG_OBJC |
80 |
AC_PROG_OBJCXX |
# The OBJCXX macro didn't exist before autoconf 2.65, so ifdef it to |
81 |
|
# avoid warnings on old systems. |
82 |
|
m4_ifdef([AC_PROG_OBJCXX], [AC_PROG_OBJCXX]) |
83 |
|
|
84 |
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
85 |
|
|
86 |
|
PKG_CHECK_EXISTS(gtk+-3.0 >= 2.99, |
87 |
|
[PKG_CHECK_MODULES([GTK], [gtk+-3.0])], |
88 |
|
[PKG_CHECK_MODULES([GTK], [gtk+-2.0])]) |
89 |
|
|
90 |
PKG_PROG_PKG_CONFIG |
PKG_PROG_PKG_CONFIG |
91 |
have_gtk3=no |
have_gtk3=no |
94 |
[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)]) |
95 |
AM_CONDITIONAL(HAVE_GTK3, [test "$have_gtk3" = "yes"]) |
AM_CONDITIONAL(HAVE_GTK3, [test "$have_gtk3" = "yes"]) |
96 |
|
|
97 |
|
# Check for cairommconfig.h, as it was moved in cairomm 1.8.4. We only |
98 |
|
# need it for newer versions. |
99 |
|
gigedit_save_CPPFLAGS=$CPPFLAGS |
100 |
|
CPPFLAGS="$GTKMM_CFLAGS $CPPFLAGS" |
101 |
|
AC_CHECK_HEADERS([cairommconfig.h]) |
102 |
|
CPPFLAGS=$gigedit_save_CPPFLAGS |
103 |
|
|
104 |
PKG_CHECK_MODULES(SIGC, sigc++-2.0) |
PKG_CHECK_MODULES(SIGC, sigc++-2.0) |
105 |
AC_SUBST(SIGC_CFLAGS) |
AC_SUBST(SIGC_CFLAGS) |
106 |
AC_SUBST(SIGC_LIBS) |
AC_SUBST(SIGC_LIBS) |
107 |
|
|
108 |
PKG_CHECK_MODULES(GIG, gig >= 4.0.0) |
PKG_CHECK_MODULES(GIG, gig >= 4.2.0) |
109 |
AC_SUBST(GIG_CFLAGS) |
AC_SUBST(GIG_CFLAGS) |
110 |
AC_SUBST(GIG_LIBS) |
AC_SUBST(GIG_LIBS) |
111 |
|
|
115 |
AC_SUBST(SNDFILE_LIBS) |
AC_SUBST(SNDFILE_LIBS) |
116 |
|
|
117 |
# check for (optional) presence of liblinuxsampler |
# check for (optional) presence of liblinuxsampler |
118 |
liblinuxsampler_version="2.0.0" |
liblinuxsampler_version="2.1.1" |
119 |
PKG_CHECK_MODULES( |
PKG_CHECK_MODULES( |
120 |
LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, |
LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, |
121 |
have_linuxsampler=1, have_linuxsampler=0 |
have_linuxsampler=1, have_linuxsampler=0 |