/[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 315 by schoenebeck, Fri Nov 26 19:29:05 2004 UTC revision 530 by schoenebeck, Mon May 9 14:09:16 2005 UTC
# Line 1  Line 1 
1  AC_INIT(configure.in)  AC_INIT(configure.in)
 AM_CONFIG_HEADER(config.h)  
   
 AM_INIT_AUTOMAKE(libgig, 1.0.0, cuse@users.sourceforge.net)  
 AC_PROG_LIBTOOL  
   
2    
3  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
4  # Rules for library version information:  # Rules for library version information:
# Line 21  AC_PROG_LIBTOOL Line 16  AC_PROG_LIBTOOL
16  #  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
17  #     to 0.  #     to 0.
18    
19  SHARED_VERSION_INFO="1:0:0"  LIBGIG_CURRENT=2
20    LIBGIG_REVISION=0
21    LIBGIG_AGE=0
22    SHARED_VERSION_INFO="$LIBGIG_CURRENT:$LIBGIG_REVISION:$LIBGIG_AGE"
23    
24    
25  AC_C_BIGENDIAN  AC_C_BIGENDIAN
# Line 33  AM_PROG_LIBTOOL Line 31  AM_PROG_LIBTOOL
31  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
32  AC_SUBST(SHARED_VERSION_INFO)  AC_SUBST(SHARED_VERSION_INFO)
33    
34  // check for presence of libsndfile  have_audio_file_lib="false"
35    
36    # check for presence of libsndfile
37  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)
38    AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")
39  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.])
40  AC_SUBST(SNDFILE_CFLAGS)  AC_SUBST(SNDFILE_CFLAGS)
41  AC_SUBST(SNDFILE_LIBS)  AC_SUBST(SNDFILE_LIBS)
42    if test "$ac_cv_sndfile" = "1"; then
43        have_audio_file_lib="true";
44    fi
45    
46    # check for presence of libaudiofile
47    PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
48    AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
49    AC_SUBST(AUDIOFILE_CFLAGS)
50    AC_SUBST(AUDIOFILE_LIBS)
51    if test "$ac_cv_audiofile" = "1"; then
52        have_audio_file_lib="true";
53    fi
54    
55    if test "$have_audio_file_lib" = "false"; then
56        echo "No audio file library found!"
57        echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
58        echo "This is needed for the gigextract utility to write audio files."
59        exit -1;
60    fi
61    
62    AM_CONFIG_HEADER(config.h)
63    AM_INIT_AUTOMAKE(libgig, "$LIBGIG_CURRENT.$LIBGIG_REVISION.$LIBGIG_AGE")
64    
65  AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile)  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.315  
changed lines
  Added in v.530

  ViewVC Help
Powered by ViewVC