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

Contents of /libgig/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3323 - (show annotations) (download)
Thu Jul 20 22:09:54 2017 UTC (11 months ago) by schoenebeck
File size: 4678 byte(s)
* gig.h/.cpp: Added new struct "eg_opt_t" and new class member variable
  "DimensionRegion::EGOptions" as an extension to the gig file format,
  which allows to override the default behavior of EGs' state machines.
* DLS.h: Got rid of C-style typedefs.
* src/tools/gigdump.cpp: Print the new EG behavior options.
* Bumped version (4.0.0.svn27).

1 #------------------------------------------------------------------------------------
2 # Library's "official" release version:
3
4 m4_define(libgig_release_major, 4)
5 m4_define(libgig_release_minor, 0)
6 m4_define(libgig_release_build, 0.svn27)
7
8
9 AC_INIT([libgig],[libgig_release_major.libgig_release_minor.libgig_release_build])
10 AC_CONFIG_SRCDIR([configure.ac])
11
12 #------------------------------------------------------------------------------------
13 # The following is the libtool / shared library version. This doesn't have to
14 # do anything with the release version. It MUST conform to the following rules:
15 #
16 # 1. Start with version information of `0:0:0' for each libtool library.
17 # 2. Update the version information only immediately before a public release of
18 # your software. More frequent updates are unnecessary, and only guarantee
19 # that the current interface number gets larger faster.
20 # 3. If the library source code has changed at all since the last update, then
21 # increment revision (`c:r:a' becomes `c:r+1:a').
22 # 4. If any interfaces have been added, removed, or changed since the last update,
23 # increment current, and set revision to 0.
24 # 5. If any interfaces have been added since the last public release, then increment
25 # age.
26 # 6. If any interfaces have been removed since the last public release, then set age
27 # to 0.
28
29 LIBGIG_LT_CURRENT=7
30 LIBGIG_LT_REVISION=0
31 LIBGIG_LT_AGE=0
32 LIBGIG_SHARED_VERSION_INFO="$LIBGIG_LT_CURRENT:$LIBGIG_LT_REVISION:$LIBGIG_LT_AGE"
33
34 LIBAKAI_LT_CURRENT=0
35 LIBAKAI_LT_REVISION=0
36 LIBAKAI_LT_AGE=0
37 LIBAKAI_SHARED_VERSION_INFO="$LIBAKAI_LT_CURRENT:$LIBAKAI_LT_REVISION:$LIBAKAI_LT_AGE"
38
39
40 AC_LANG([C++])
41 AC_PROG_CXX
42 AC_LIBTOOL_WIN32_DLL
43 AC_PROG_LIBTOOL
44
45 AC_C_BIGENDIAN
46
47 AC_SUBST(LIBGIG_SHLIB_VERSION_ARG)
48 AC_SUBST(LIBGIG_SHARED_VERSION_INFO)
49 AC_SUBST(LIBGIG_RELEASE_MAJOR, libgig_release_major)
50 AC_SUBST(LIBGIG_RELEASE_MINOR, libgig_release_minor)
51 AC_SUBST(LIBGIG_RELEASE_BUILD, libgig_release_build)
52
53 AC_SUBST(LIBAKAI_SHLIB_VERSION_ARG)
54 AC_SUBST(LIBAKAI_SHARED_VERSION_INFO)
55 AC_SUBST(LIBAKAI_RELEASE_MAJOR, libakai_release_major)
56 AC_SUBST(LIBAKAI_RELEASE_MINOR, libakai_release_minor)
57 AC_SUBST(LIBAKAI_RELEASE_BUILD, libakai_release_build)
58
59 have_audio_file_lib="false"
60
61 # check for presence of libsndfile
62 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
63 AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")
64 AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])
65 AC_SUBST(SNDFILE_CFLAGS)
66 AC_SUBST(SNDFILE_LIBS)
67 if test "$ac_cv_sndfile" = "1"; then
68 have_audio_file_lib="true";
69 else
70 # no libsndfile? then check for presence of libaudiofile
71 PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
72 AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
73 AC_SUBST(AUDIOFILE_CFLAGS)
74 AC_SUBST(AUDIOFILE_LIBS)
75 if test "$ac_cv_audiofile" = "1"; then
76 have_audio_file_lib="true";
77 fi
78 fi
79 if test "$have_audio_file_lib" = "false"; then
80 echo "No audio file library found!"
81 echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
82 echo "This is needed for the gigextract utility to write audio files."
83 exit -1;
84 fi
85
86 AC_CHECK_HEADERS(uuid/uuid.h)
87 AC_SEARCH_LIBS(uuid_generate, uuid)
88 AC_CHECK_FUNCS(uuid_generate)
89 AC_CHECK_FUNCS(vasprintf)
90
91 case "$host" in
92 *mingw*|*cygwin*)
93 win32=yes
94 ;;
95 *)
96 win32=no
97 ;;
98 esac
99 AM_CONDITIONAL(WIN32, test "$win32" = "yes")
100
101 case "$host" in
102 *-*-darwin*)
103 mac=yes
104 ;;
105 *)
106 mac=no
107 ;;
108 esac
109 AM_CONDITIONAL(MAC, test "$mac" = "yes")
110
111 if test "$ac_cv_func_uuid_generate" = no -a "$mac" = no -a "$win32" = no; then
112 AC_MSG_WARN([No UUID generate function found.
113 *** libgig will not be able to create DLSIDs in DLS and gig files.
114 *** Install libuuid from e2fsprogs to solve this. Package might be called
115 *** uuid-dev, libext2fs2-devel or e2fsprogs-devel.])
116 fi
117
118 AC_CONFIG_HEADERS([config.h])
119 AM_INIT_AUTOMAKE
120
121 AC_CONFIG_FILES([\
122 Doxyfile \
123 gig.pc \
124 akai.pc \
125 libgig.spec \
126 Makefile \
127 src/Makefile \
128 src/testcases/Makefile \
129 src/tools/Makefile \
130 doc/Makefile \
131 man/Makefile \
132 man/dlsdump.1 \
133 man/gigdump.1 \
134 man/gigextract.1 \
135 man/gigmerge.1 \
136 man/gig2mono.1 \
137 man/gig2stereo.1 \
138 man/rifftree.1 \
139 man/sf2dump.1 \
140 man/sf2extract.1 \
141 man/korgdump.1 \
142 man/korg2gig.1 \
143 man/akaidump.1 \
144 man/akaiextract.1 \
145 debian/Makefile \
146 osx/Makefile \
147 osx/libgig.xcodeproj/Makefile \
148 win32/Makefile \
149 win32/libgig.dev \
150 ])
151 AC_OUTPUT

  ViewVC Help
Powered by ViewVC