(file) Return to configure.in CVS log (file) (dir) Up to [ls] / libgig

This file is part of libgig, which is released under the terms of the GNU General Public License.


 1 schoenebeck 1.1 AC_INIT(configure.in)
 2 schoenebeck 1.4 
 3                 #------------------------------------------------------------------------------------
 4 schoenebeck 1.17 # Library's "official" release version:
 5                  
 6 schoenebeck 1.19 LIBGIG_RELEASE_MAJOR=3
 7 schoenebeck 1.21 LIBGIG_RELEASE_MINOR=1
 8 schoenebeck 1.22 LIBGIG_RELEASE_BUILD=1
 9 schoenebeck 1.17 
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 schoenebeck 1.4  #
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 schoenebeck 1.22 LIBGIG_LT_CURRENT=7
28 schoenebeck 1.17 LIBGIG_LT_REVISION=0
29 schoenebeck 1.22 LIBGIG_LT_AGE=1
30 schoenebeck 1.17 SHARED_VERSION_INFO="$LIBGIG_LT_CURRENT:$LIBGIG_LT_REVISION:$LIBGIG_LT_AGE"
31 schoenebeck 1.4  
32 capela      1.3  
33 schoenebeck 1.2  AC_C_BIGENDIAN
34 schoenebeck 1.1  
35                  AC_LANG_CPLUSPLUS
36                  AC_PROG_CXX
37                  AM_PROG_LIBTOOL
38                  
39 schoenebeck 1.4  AC_SUBST(SHLIB_VERSION_ARG)
40                  AC_SUBST(SHARED_VERSION_INFO)
41                  
42 schoenebeck 1.8  have_audio_file_lib="false"
43                  
44 persson     1.9  # check for presence of libsndfile
45 schoenebeck 1.6  PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
46 schoenebeck 1.8  AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")
47 schoenebeck 1.6  AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])
48                  AC_SUBST(SNDFILE_CFLAGS)
49                  AC_SUBST(SNDFILE_LIBS)
50 schoenebeck 1.8  if test "$ac_cv_sndfile" = "1"; then
51                      have_audio_file_lib="true";
52 schoenebeck 1.13 else
53                      # no libsndfile? then check for presence of libaudiofile
54                      PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
55                      AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
56                      AC_SUBST(AUDIOFILE_CFLAGS)
57                      AC_SUBST(AUDIOFILE_LIBS)
58                      if test "$ac_cv_audiofile" = "1"; then
59                          have_audio_file_lib="true";
60                      fi
61 schoenebeck 1.8  fi
62                  if test "$have_audio_file_lib" = "false"; then
63                      echo "No audio file library found!"
64                      echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
65                      echo "This is needed for the gigextract utility to write audio files."
66                      exit -1;
67                  fi
68 schoenebeck 1.6  
69 schoenebeck 1.11 AM_CONFIG_HEADER(config.h)
70 schoenebeck 1.17 AM_INIT_AUTOMAKE(libgig, "$LIBGIG_RELEASE_MAJOR.$LIBGIG_RELEASE_MINOR.$LIBGIG_RELEASE_BUILD")
71 schoenebeck 1.10 
72 schoenebeck 1.23 AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile man/dlsdump.1 man/gigdump.1 man/gigextract.1 man/rifftree.1 debian/Makefile src/testcases/Makefile win32/Makefile)

LinuxSampler Developers
Powered by
ViewCVS