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

Annotation of /libgig/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2394 - (hide annotations) (download)
Mon Jan 7 23:23:58 2013 UTC (11 years, 2 months ago) by schoenebeck
File size: 4009 byte(s)
* implemented gig::File::AddDuplicateInstrument()
* bumped version to 3.3.0.svn4

1 schoenebeck 186 #------------------------------------------------------------------------------------
2 schoenebeck 646 # Library's "official" release version:
3    
4 persson 2364 m4_define(libgig_release_major, 3)
5     m4_define(libgig_release_minor, 3)
6 schoenebeck 2394 m4_define(libgig_release_build, 0.svn4)
7 schoenebeck 646
8 persson 2364
9     AC_INIT([libgig],[libgig_release_major.libgig_release_minor.libgig_release_build])
10 persson 2367 AC_CONFIG_SRCDIR([configure.ac])
11 persson 2364
12 schoenebeck 646 #------------------------------------------------------------------------------------
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 schoenebeck 186 #
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 schoenebeck 1953 LIBGIG_LT_CURRENT=10
30 schoenebeck 646 LIBGIG_LT_REVISION=0
31 schoenebeck 1953 LIBGIG_LT_AGE=4
32 schoenebeck 646 SHARED_VERSION_INFO="$LIBGIG_LT_CURRENT:$LIBGIG_LT_REVISION:$LIBGIG_LT_AGE"
33 schoenebeck 186
34    
35 persson 2364 AC_LANG([C++])
36 schoenebeck 2 AC_PROG_CXX
37 persson 1894 AC_LIBTOOL_WIN32_DLL
38 persson 2364 AC_PROG_LIBTOOL
39 schoenebeck 2
40 persson 1417 AC_C_BIGENDIAN
41    
42 schoenebeck 186 AC_SUBST(SHLIB_VERSION_ARG)
43     AC_SUBST(SHARED_VERSION_INFO)
44 persson 2364 AC_SUBST(LIBGIG_RELEASE_MAJOR, libgig_release_major)
45     AC_SUBST(LIBGIG_RELEASE_MINOR, libgig_release_minor)
46     AC_SUBST(LIBGIG_RELEASE_BUILD, libgig_release_build)
47 schoenebeck 186
48 schoenebeck 383 have_audio_file_lib="false"
49    
50 persson 496 # check for presence of libsndfile
51 schoenebeck 220 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
52 schoenebeck 383 AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")
53 schoenebeck 220 AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])
54     AC_SUBST(SNDFILE_CFLAGS)
55     AC_SUBST(SNDFILE_LIBS)
56 schoenebeck 383 if test "$ac_cv_sndfile" = "1"; then
57     have_audio_file_lib="true";
58 schoenebeck 546 else
59     # no libsndfile? then check for presence of libaudiofile
60     PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
61     AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
62     AC_SUBST(AUDIOFILE_CFLAGS)
63     AC_SUBST(AUDIOFILE_LIBS)
64     if test "$ac_cv_audiofile" = "1"; then
65     have_audio_file_lib="true";
66     fi
67 schoenebeck 383 fi
68     if test "$have_audio_file_lib" = "false"; then
69     echo "No audio file library found!"
70     echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
71     echo "This is needed for the gigextract utility to write audio files."
72     exit -1;
73     fi
74    
75 persson 1209 AC_CHECK_HEADERS(uuid/uuid.h)
76     AC_SEARCH_LIBS(uuid_generate, uuid)
77 persson 2182 AC_CHECK_FUNCS(uuid_generate)
78 persson 1209
79 persson 1330 case "$host" in
80     *mingw*|*cygwin*)
81     win32=yes
82     ;;
83     *)
84     win32=no
85     ;;
86     esac
87     AM_CONDITIONAL(WIN32, test "$win32" = "yes")
88    
89 persson 2182 case "$host" in
90     *-*-darwin*)
91     mac=yes
92     ;;
93     *)
94     mac=no
95     ;;
96     esac
97     AM_CONDITIONAL(MAC, test "$mac" = "yes")
98    
99     if test "$ac_cv_func_uuid_generate" = no -a "$mac" = no -a "$win32" = no; then
100     AC_MSG_WARN([No UUID generate function found.
101 persson 1209 *** libgig will not be able to create DLSIDs in DLS and gig files.
102     *** Install libuuid from e2fsprogs to solve this. Package might be called
103     *** uuid-dev, libext2fs2-devel or e2fsprogs-devel.])
104     fi
105    
106 persson 2364 AC_CONFIG_HEADERS([config.h])
107     AM_INIT_AUTOMAKE
108 schoenebeck 518
109 persson 2364 AC_CONFIG_FILES([\
110 schoenebeck 1186 Doxyfile \
111     gig.pc \
112     libgig.spec \
113     Makefile \
114     src/Makefile \
115     src/testcases/Makefile \
116     doc/Makefile \
117     man/Makefile \
118     man/dlsdump.1 \
119     man/gigdump.1 \
120     man/gigextract.1 \
121     man/rifftree.1 \
122     debian/Makefile \
123     osx/Makefile \
124     osx/libgig.xcodeproj/Makefile \
125     win32/Makefile \
126     win32/libgig.dev \
127 persson 2364 ])
128     AC_OUTPUT

  ViewVC Help
Powered by ViewVC