1 |
AC_INIT(configure.in) |
AC_INIT(configure.in) |
|
AM_CONFIG_HEADER(config.h) |
|
2 |
|
|
3 |
AM_INIT_AUTOMAKE(libgig, 0.7.1) |
#------------------------------------------------------------------------------------ |
4 |
|
# Library's "official" release version: |
5 |
|
|
6 |
|
LIBGIG_RELEASE_MAJOR=3 |
7 |
|
LIBGIG_RELEASE_MINOR=1 |
8 |
|
LIBGIG_RELEASE_BUILD=1 |
9 |
|
|
10 |
|
#------------------------------------------------------------------------------------ |
11 |
|
# The following is the libtool / shared library version. This doesn't have to |
12 |
|
# do anything with the release version. It MUST conform to the following rules: |
13 |
|
# |
14 |
|
# 1. Start with version information of `0:0:0' for each libtool library. |
15 |
|
# 2. Update the version information only immediately before a public release of |
16 |
|
# your software. More frequent updates are unnecessary, and only guarantee |
17 |
|
# that the current interface number gets larger faster. |
18 |
|
# 3. If the library source code has changed at all since the last update, then |
19 |
|
# increment revision (`c:r:a' becomes `c:r+1:a'). |
20 |
|
# 4. If any interfaces have been added, removed, or changed since the last update, |
21 |
|
# increment current, and set revision to 0. |
22 |
|
# 5. If any interfaces have been added since the last public release, then increment |
23 |
|
# age. |
24 |
|
# 6. If any interfaces have been removed since the last public release, then set age |
25 |
|
# to 0. |
26 |
|
|
27 |
|
LIBGIG_LT_CURRENT=7 |
28 |
|
LIBGIG_LT_REVISION=0 |
29 |
|
LIBGIG_LT_AGE=1 |
30 |
|
SHARED_VERSION_INFO="$LIBGIG_LT_CURRENT:$LIBGIG_LT_REVISION:$LIBGIG_LT_AGE" |
31 |
|
|
32 |
|
|
33 |
AC_C_BIGENDIAN |
AC_C_BIGENDIAN |
34 |
|
|
36 |
AC_PROG_CXX |
AC_PROG_CXX |
37 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
38 |
|
|
39 |
AC_OUTPUT(Makefile src/Makefile libgig.spec libgig.pc Doxyfile) |
AC_SUBST(SHLIB_VERSION_ARG) |
40 |
|
AC_SUBST(SHARED_VERSION_INFO) |
41 |
|
AC_SUBST(LIBGIG_RELEASE_MAJOR) |
42 |
|
AC_SUBST(LIBGIG_RELEASE_MINOR) |
43 |
|
AC_SUBST(LIBGIG_RELEASE_BUILD) |
44 |
|
|
45 |
|
have_audio_file_lib="false" |
46 |
|
|
47 |
|
# check for presence of libsndfile |
48 |
|
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0) |
49 |
|
AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1") |
50 |
|
AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.]) |
51 |
|
AC_SUBST(SNDFILE_CFLAGS) |
52 |
|
AC_SUBST(SNDFILE_LIBS) |
53 |
|
if test "$ac_cv_sndfile" = "1"; then |
54 |
|
have_audio_file_lib="true"; |
55 |
|
else |
56 |
|
# no libsndfile? then check for presence of libaudiofile |
57 |
|
PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0) |
58 |
|
AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.]) |
59 |
|
AC_SUBST(AUDIOFILE_CFLAGS) |
60 |
|
AC_SUBST(AUDIOFILE_LIBS) |
61 |
|
if test "$ac_cv_audiofile" = "1"; then |
62 |
|
have_audio_file_lib="true"; |
63 |
|
fi |
64 |
|
fi |
65 |
|
if test "$have_audio_file_lib" = "false"; then |
66 |
|
echo "No audio file library found!" |
67 |
|
echo "Sorry, you need either libsndfile or libaudiofile to compile libgig." |
68 |
|
echo "This is needed for the gigextract utility to write audio files." |
69 |
|
exit -1; |
70 |
|
fi |
71 |
|
|
72 |
|
AC_CHECK_HEADERS(uuid/uuid.h) |
73 |
|
AC_SEARCH_LIBS(uuid_generate, uuid) |
74 |
|
AC_CHECK_FUNCS(uuid_generate CFUUIDCreate) |
75 |
|
|
76 |
|
if test "$ac_cv_func_uuid_generate" = no -a "$ac_cv_func_CFUUIDCreate" = no; then |
77 |
|
AC_MSG_WARN([No UUID generate function found. |
78 |
|
*** libgig will not be able to create DLSIDs in DLS and gig files. |
79 |
|
*** Install libuuid from e2fsprogs to solve this. Package might be called |
80 |
|
*** uuid-dev, libext2fs2-devel or e2fsprogs-devel.]) |
81 |
|
fi |
82 |
|
|
83 |
|
AM_CONFIG_HEADER(config.h) |
84 |
|
AM_INIT_AUTOMAKE(libgig, "$LIBGIG_RELEASE_MAJOR.$LIBGIG_RELEASE_MINOR.$LIBGIG_RELEASE_BUILD") |
85 |
|
|
86 |
|
AC_OUTPUT( \ |
87 |
|
Doxyfile \ |
88 |
|
gig.pc \ |
89 |
|
libgig.spec \ |
90 |
|
Makefile \ |
91 |
|
src/Makefile \ |
92 |
|
src/testcases/Makefile \ |
93 |
|
doc/Makefile \ |
94 |
|
man/Makefile \ |
95 |
|
man/dlsdump.1 \ |
96 |
|
man/gigdump.1 \ |
97 |
|
man/gigextract.1 \ |
98 |
|
man/rifftree.1 \ |
99 |
|
debian/Makefile \ |
100 |
|
osx/Makefile \ |
101 |
|
osx/libgig.xcodeproj/Makefile \ |
102 |
|
win32/Makefile \ |
103 |
|
win32/libgig.dev \ |
104 |
|
) |