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

Annotation of /gigedit/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1303 - (hide annotations) (download)
Sun Aug 26 09:29:52 2007 UTC (16 years, 7 months ago) by persson
File size: 3926 byte(s)
* make sure samplechannel dimension gets created for stereo samples
* allow building with older versions of gtk and libsndfile
* remember selected dimension when switching regions
* fix for loop parameters for unmapped dimregions
* check if file is savable before trying to save

1 persson 1052 dnl Process this file with autoconf to produce a configure script.
2     AC_INIT(gigedit,0.0.3)
3 schoenebeck 1213
4     #------------------------------------------------------------------------------------
5     # The following is the libtool / shared library version. This doesn't have to
6     # do anything with the release version. It MUST conform to the following rules:
7     #
8     # 1. Start with version information of `0:0:0' for each libtool library.
9     # 2. Update the version information only immediately before a public release of
10     # your software. More frequent updates are unnecessary, and only guarantee
11     # that the current interface number gets larger faster.
12     # 3. If the library source code has changed at all since the last update, then
13     # increment revision (`c:r:a' becomes `c:r+1:a').
14     # 4. If any interfaces have been added, removed, or changed since the last update,
15     # increment current, and set revision to 0.
16     # 5. If any interfaces have been added since the last public release, then increment
17     # age.
18     # 6. If any interfaces have been removed since the last public release, then set age
19     # to 0.
20    
21     LIBGIGEDIT_LT_CURRENT=0
22     LIBGIGEDIT_LT_REVISION=0
23     LIBGIGEDIT_LT_AGE=0
24     SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE"
25     AC_PROG_LIBTOOL
26     AC_SUBST(SHLIB_VERSION_ARG)
27     AC_SUBST(SHARED_VERSION_INFO)
28    
29 schoenebeck 1228 # configure checks for the following file's existence to make sure that
30     # the directory that it is told contains the source code in fact does.
31     # Occasionally people accidentally specify the wrong directory with
32     # `--srcdir'; this is a safety check.
33     AC_CONFIG_SRCDIR(src/gigedit/main.cpp)
34    
35 persson 1052 AC_CONFIG_HEADERS(config.h)
36     AM_INIT_AUTOMAKE
37    
38     GETTEXT_PACKAGE=gigedit
39     AC_SUBST([GETTEXT_PACKAGE])
40     AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
41    
42     AC_PROG_CXX
43    
44 persson 1073 IT_PROG_INTLTOOL(0.35.0)
45 persson 1052 AM_GLIB_GNU_GETTEXT
46    
47 persson 1303 PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.4.11 gthread-2.0)
48 persson 1121 PKG_CHECK_MODULES(GIG, gig >= 3.1.1)
49 persson 1052
50 schoenebeck 1085 # check for presence of libsndfile
51     PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2)
52     AC_SUBST(SNDFILE_CFLAGS)
53     AC_SUBST(SNDFILE_LIBS)
54    
55 persson 1303 # check for loop functionality in libsndfile
56     gigedit_save_CFLAGS=$CFLAGS
57     CFLAGS="$SNDFILE_CFLAGS $CFLAGS"
58     AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],,
59     [AC_MSG_WARN([Your version of libsndfile does not support
60     reading of loop information. Gigedit will not be able to
61     extract loop information from sample files.])],
62     [#include <sndfile.h>])
63     CFLAGS=$gigedit_save_CFLAGS
64    
65 schoenebeck 1213 # check for (optional) presence of liblinuxsampler
66     liblinuxsampler_version="0.4.0.5cvs"
67     PKG_CHECK_MODULES(
68     LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version,
69     have_linuxsampler=1, have_linuxsampler=0
70     )
71 schoenebeck 1230 LINUXSAMPLER_PLUGIN_DIR=
72 schoenebeck 1213 if test "$have_linuxsampler" = "0"; then
73     echo "Required liblinuxsampler version not found!"
74     echo "You need to have liblinuxsampler version ${liblinuxsampler_version}"
75     echo "installed. Support for on-the-fly editing with LinuxSampler will"
76     echo "be disabled."
77     else
78 schoenebeck 1230 echo "Found linuxsampler $liblinuxsampler_version"
79     echo -n "Retrieving LinuxSampler's plugin dir... "
80     LINUXSAMPLER_PLUGIN_DIR=`pkg-config --variable plugindir linuxsampler`
81     if test "$LINUXSAMPLER_PLUGIN_DIR" = ""; then
82     have_linuxsampler=0
83     echo "Error"
84     echo "Could not retrieve LinuxSampler's plugin directory. Support"
85     echo "for on-the-fly editing with LinuxSampler will be disabled."
86     else
87     echo "${LINUXSAMPLER_PLUGIN_DIR} "
88     fi
89 schoenebeck 1213 fi
90     AC_SUBST(LINUXSAMPLER_CFLAGS)
91     AC_SUBST(LINUXSAMPLER_LIBS)
92 schoenebeck 1230 AC_SUBST(LINUXSAMPLER_PLUGIN_DIR)
93 schoenebeck 1213 AM_CONDITIONAL(HAVE_LINUXSAMPLER, test $have_linuxsampler = "1")
94     AC_DEFINE_UNQUOTED(
95     HAVE_LINUXSAMPLER, $have_linuxsampler,
96     [Define to 1 if you have LinuxSampler installed.]
97     )
98    
99 persson 1052 AC_CONFIG_FILES([
100 schoenebeck 1213 Makefile
101     src/Makefile
102 schoenebeck 1226 src/gigedit/Makefile
103 schoenebeck 1213 src/plugin/Makefile
104     po/Makefile.in
105     debian/Makefile
106 persson 1236 doc/Makefile
107     doc/quickstart/Makefile
108 persson 1052 ])
109     AC_OUTPUT

  ViewVC Help
Powered by ViewVC