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

Diff of /libgig/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.2  
changed lines
  Added in v.518

  ViewVC Help
Powered by ViewVC