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

Diff of /libgig/trunk/configure.ac

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

revision 383 by schoenebeck, Mon Feb 14 18:22:42 2005 UTC revision 1116 by schoenebeck, Sat Mar 24 11:55:06 2007 UTC
# Line 1  Line 1 
1  AC_INIT(configure.in)  AC_INIT(configure.in)
 AM_CONFIG_HEADER(config.h)  
2    
3  AM_INIT_AUTOMAKE(libgig, 1.0.0, cuse@users.sourceforge.net)  #------------------------------------------------------------------------------------
4  AC_PROG_LIBTOOL  # Library's "official" release version:
5    
6    LIBGIG_RELEASE_MAJOR=3
7    LIBGIG_RELEASE_MINOR=1
8    LIBGIG_RELEASE_BUILD=1
9    
10  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
11  # Rules for library version information:  # 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.  #  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  #  2. Update the version information only immediately before a public release of
# Line 21  AC_PROG_LIBTOOL Line 24  AC_PROG_LIBTOOL
24  #  6. If any interfaces have been removed since the last public release, then set age  #  6. If any interfaces have been removed since the last public release, then set age
25  #     to 0.  #     to 0.
26    
27  SHARED_VERSION_INFO="1:0:0"  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
# Line 35  AC_SUBST(SHARED_VERSION_INFO) Line 41  AC_SUBST(SHARED_VERSION_INFO)
41    
42  have_audio_file_lib="false"  have_audio_file_lib="false"
43    
44  // check for presence of libsndfile  # check for presence of libsndfile
45  PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)  PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
46  AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")  AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")
47  AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])  AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])
# Line 43  AC_SUBST(SNDFILE_CFLAGS) Line 49  AC_SUBST(SNDFILE_CFLAGS)
49  AC_SUBST(SNDFILE_LIBS)  AC_SUBST(SNDFILE_LIBS)
50  if test "$ac_cv_sndfile" = "1"; then  if test "$ac_cv_sndfile" = "1"; then
51      have_audio_file_lib="true";      have_audio_file_lib="true";
52    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  fi  fi
   
 // check for presence of libaudiofile  
 PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)  
 AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])  
 AC_SUBST(AUDIOFILE_CFLAGS)  
 AC_SUBST(AUDIOFILE_LIBS)  
 if test "$ac_cv_audiofile" = "1"; then  
     have_audio_file_lib="true";  
 fi  
   
62  if test "$have_audio_file_lib" = "false"; then  if test "$have_audio_file_lib" = "false"; then
63      echo "No audio file library found!"      echo "No audio file library found!"
64      echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."      echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
# Line 61  if test "$have_audio_file_lib" = "false" Line 66  if test "$have_audio_file_lib" = "false"
66      exit -1;      exit -1;
67  fi  fi
68    
69  AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile)  AM_CONFIG_HEADER(config.h)
70    AM_INIT_AUTOMAKE(libgig, "$LIBGIG_RELEASE_MAJOR.$LIBGIG_RELEASE_MINOR.$LIBGIG_RELEASE_BUILD")
71    
72    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)

Legend:
Removed from v.383  
changed lines
  Added in v.1116

  ViewVC Help
Powered by ViewVC