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

Annotation of /libgig/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 644 - (hide annotations) (download)
Sun Jun 12 23:52:05 2005 UTC (18 years, 9 months ago) by schoenebeck
File size: 2478 byte(s)
fixed libgig's libtool version

1 schoenebeck 2 AC_INIT(configure.in)
2 capela 168
3 schoenebeck 186 #------------------------------------------------------------------------------------
4     # Rules for library version information:
5     #
6     # 1. Start with version information of `0:0:0' for each libtool library.
7     # 2. Update the version information only immediately before a public release of
8     # your software. More frequent updates are unnecessary, and only guarantee
9     # that the current interface number gets larger faster.
10     # 3. If the library source code has changed at all since the last update, then
11     # increment revision (`c:r:a' becomes `c:r+1:a').
12     # 4. If any interfaces have been added, removed, or changed since the last update,
13     # increment current, and set revision to 0.
14     # 5. If any interfaces have been added since the last public release, then increment
15     # age.
16     # 6. If any interfaces have been removed since the last public release, then set age
17     # to 0.
18    
19 schoenebeck 644 LIBGIG_CURRENT=3
20 schoenebeck 518 LIBGIG_REVISION=0
21 schoenebeck 632 LIBGIG_AGE=1
22 schoenebeck 518 SHARED_VERSION_INFO="$LIBGIG_CURRENT:$LIBGIG_REVISION:$LIBGIG_AGE"
23 schoenebeck 186
24    
25 schoenebeck 11 AC_C_BIGENDIAN
26 schoenebeck 2
27     AC_LANG_CPLUSPLUS
28     AC_PROG_CXX
29     AM_PROG_LIBTOOL
30    
31 schoenebeck 186 AC_SUBST(SHLIB_VERSION_ARG)
32     AC_SUBST(SHARED_VERSION_INFO)
33    
34 schoenebeck 383 have_audio_file_lib="false"
35    
36 persson 496 # check for presence of libsndfile
37 schoenebeck 220 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
38 schoenebeck 383 AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")
39 schoenebeck 220 AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])
40     AC_SUBST(SNDFILE_CFLAGS)
41     AC_SUBST(SNDFILE_LIBS)
42 schoenebeck 383 if test "$ac_cv_sndfile" = "1"; then
43     have_audio_file_lib="true";
44 schoenebeck 546 else
45     # no libsndfile? then check for presence of libaudiofile
46     PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
47     AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
48     AC_SUBST(AUDIOFILE_CFLAGS)
49     AC_SUBST(AUDIOFILE_LIBS)
50     if test "$ac_cv_audiofile" = "1"; then
51     have_audio_file_lib="true";
52     fi
53 schoenebeck 383 fi
54     if test "$have_audio_file_lib" = "false"; then
55     echo "No audio file library found!"
56     echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
57     echo "This is needed for the gigextract utility to write audio files."
58     exit -1;
59     fi
60    
61 schoenebeck 522 AM_CONFIG_HEADER(config.h)
62 schoenebeck 518 AM_INIT_AUTOMAKE(libgig, "$LIBGIG_CURRENT.$LIBGIG_REVISION.$LIBGIG_AGE")
63    
64 schoenebeck 634 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)

  ViewVC Help
Powered by ViewVC