/[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 186 by schoenebeck, Wed Jul 7 12:03:54 2004 UTC revision 383 by schoenebeck, Mon Feb 14 18:22:42 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    
4  AM_INIT_AUTOMAKE(libgig, 0.7.1, cuse@users.sourceforge.net)  AM_INIT_AUTOMAKE(libgig, 1.0.0, cuse@users.sourceforge.net)
5  AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
6    
7    
# Line 21  AC_PROG_LIBTOOL Line 21  AC_PROG_LIBTOOL
21  #  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
22  #     to 0.  #     to 0.
23    
24  # we wait to bump the version until the next point release  SHARED_VERSION_INFO="1:0:0"
 SHARED_VERSION_INFO="0:0:0"  
25    
26    
27  AC_C_BIGENDIAN  AC_C_BIGENDIAN
# Line 34  AM_PROG_LIBTOOL Line 33  AM_PROG_LIBTOOL
33  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
34  AC_SUBST(SHARED_VERSION_INFO)  AC_SUBST(SHARED_VERSION_INFO)
35    
36  AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec libgig.pc Doxyfile)  have_audio_file_lib="false"
37    
38    // check for presence of libsndfile
39    PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
40    AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")
41    AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])
42    AC_SUBST(SNDFILE_CFLAGS)
43    AC_SUBST(SNDFILE_LIBS)
44    if test "$ac_cv_sndfile" = "1"; then
45        have_audio_file_lib="true";
46    fi
47    
48    // check for presence of libaudiofile
49    PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
50    AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
51    AC_SUBST(AUDIOFILE_CFLAGS)
52    AC_SUBST(AUDIOFILE_LIBS)
53    if test "$ac_cv_audiofile" = "1"; then
54        have_audio_file_lib="true";
55    fi
56    
57    if test "$have_audio_file_lib" = "false"; then
58        echo "No audio file library found!"
59        echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
60        echo "This is needed for the gigextract utility to write audio files."
61        exit -1;
62    fi
63    
64    AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile)

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

  ViewVC Help
Powered by ViewVC