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

Diff of /libgig/trunk/configure.ac

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

libgig/trunk/configure.in revision 496 by persson, Sun Apr 10 11:54:58 2005 UTC libgig/trunk/configure.ac revision 2780 by schoenebeck, Thu Jul 2 20:04:16 2015 UTC
# Line 1  Line 1 
1  AC_INIT(configure.in)  #------------------------------------------------------------------------------------
2  AM_CONFIG_HEADER(config.h)  # Library's "official" release version:
3    
4  AM_INIT_AUTOMAKE(libgig, 1.0.0, cuse@users.sourceforge.net)  m4_define(libgig_release_major, 3)
5  AC_PROG_LIBTOOL  m4_define(libgig_release_minor, 3)
6    m4_define(libgig_release_build, 0.svn29)
7    
8    
9    AC_INIT([libgig],[libgig_release_major.libgig_release_minor.libgig_release_build])
10    AC_CONFIG_SRCDIR([configure.ac])
11    
12  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
13  # Rules for library version information:  # The following is the libtool / shared library version. This doesn't have to
14    # do anything with the release version. It MUST conform to the following rules:
15  #  #
16  #  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.
17  #  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 26  AC_PROG_LIBTOOL
26  #  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
27  #     to 0.  #     to 0.
28    
29  SHARED_VERSION_INFO="1:0:0"  LIBGIG_LT_CURRENT=10
30    LIBGIG_LT_REVISION=0
31    LIBGIG_LT_AGE=4
32    LIBGIG_SHARED_VERSION_INFO="$LIBGIG_LT_CURRENT:$LIBGIG_LT_REVISION:$LIBGIG_LT_AGE"
33    
34    LIBAKAI_LT_CURRENT=0
35    LIBAKAI_LT_REVISION=0
36    LIBAKAI_LT_AGE=0
37    LIBAKAI_SHARED_VERSION_INFO="$LIBAKAI_LT_CURRENT:$LIBAKAI_LT_REVISION:$LIBAKAI_LT_AGE"
38    
 AC_C_BIGENDIAN  
39    
40  AC_LANG_CPLUSPLUS  AC_LANG([C++])
41  AC_PROG_CXX  AC_PROG_CXX
42  AM_PROG_LIBTOOL  AC_LIBTOOL_WIN32_DLL
43    AC_PROG_LIBTOOL
44    
45    AC_C_BIGENDIAN
46    
47  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(LIBGIG_SHLIB_VERSION_ARG)
48  AC_SUBST(SHARED_VERSION_INFO)  AC_SUBST(LIBGIG_SHARED_VERSION_INFO)
49    AC_SUBST(LIBGIG_RELEASE_MAJOR, libgig_release_major)
50    AC_SUBST(LIBGIG_RELEASE_MINOR, libgig_release_minor)
51    AC_SUBST(LIBGIG_RELEASE_BUILD, libgig_release_build)
52    
53    AC_SUBST(LIBAKAI_SHLIB_VERSION_ARG)
54    AC_SUBST(LIBAKAI_SHARED_VERSION_INFO)
55    AC_SUBST(LIBAKAI_RELEASE_MAJOR, libakai_release_major)
56    AC_SUBST(LIBAKAI_RELEASE_MINOR, libakai_release_minor)
57    AC_SUBST(LIBAKAI_RELEASE_BUILD, libakai_release_build)
58    
59  have_audio_file_lib="false"  have_audio_file_lib="false"
60    
# Line 43  AC_SUBST(SNDFILE_CFLAGS) Line 66  AC_SUBST(SNDFILE_CFLAGS)
66  AC_SUBST(SNDFILE_LIBS)  AC_SUBST(SNDFILE_LIBS)
67  if test "$ac_cv_sndfile" = "1"; then  if test "$ac_cv_sndfile" = "1"; then
68      have_audio_file_lib="true";      have_audio_file_lib="true";
69    else
70        # no libsndfile? then check for presence of libaudiofile
71        PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
72        AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
73        AC_SUBST(AUDIOFILE_CFLAGS)
74        AC_SUBST(AUDIOFILE_LIBS)
75        if test "$ac_cv_audiofile" = "1"; then
76            have_audio_file_lib="true";
77        fi
78  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  
   
79  if test "$have_audio_file_lib" = "false"; then  if test "$have_audio_file_lib" = "false"; then
80      echo "No audio file library found!"      echo "No audio file library found!"
81      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 83  if test "$have_audio_file_lib" = "false"
83      exit -1;      exit -1;
84  fi  fi
85    
86  AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile)  AC_CHECK_HEADERS(uuid/uuid.h)
87    AC_SEARCH_LIBS(uuid_generate, uuid)
88    AC_CHECK_FUNCS(uuid_generate)
89    
90    case "$host" in
91        *mingw*|*cygwin*)
92            win32=yes
93            ;;
94        *)
95            win32=no
96            ;;
97    esac
98    AM_CONDITIONAL(WIN32, test "$win32" = "yes")
99    
100    case "$host" in
101        *-*-darwin*)
102            mac=yes
103            ;;
104        *)
105            mac=no
106            ;;
107    esac
108    AM_CONDITIONAL(MAC, test "$mac" = "yes")
109    
110    if test "$ac_cv_func_uuid_generate" = no -a "$mac" = no -a "$win32" = no; then
111        AC_MSG_WARN([No UUID generate function found.
112    *** libgig will not be able to create DLSIDs in DLS and gig files.
113    *** Install libuuid from e2fsprogs to solve this. Package might be called
114    *** uuid-dev, libext2fs2-devel or e2fsprogs-devel.])
115    fi
116    
117    AC_CONFIG_HEADERS([config.h])
118    AM_INIT_AUTOMAKE
119    
120    AC_CONFIG_FILES([\
121        Doxyfile \
122        gig.pc \
123        akai.pc \
124        libgig.spec \
125        Makefile \
126        src/Makefile \
127        src/testcases/Makefile \
128        src/tools/Makefile \
129        doc/Makefile \
130        man/Makefile \
131        man/dlsdump.1 \
132        man/gigdump.1 \
133        man/gigextract.1 \
134        man/gigmerge.1 \
135        man/gig2mono.1 \
136        man/gig2stereo.1 \
137        man/rifftree.1 \
138        man/sf2dump.1 \
139        man/sf2extract.1 \
140        man/korgdump.1 \
141        man/korg2gig.1 \
142        man/akaidump.1 \
143        man/akaiextract.1 \
144        debian/Makefile \
145        osx/Makefile \
146        osx/libgig.xcodeproj/Makefile \
147        win32/Makefile \
148        win32/libgig.dev \
149    ])
150    AC_OUTPUT

Legend:
Removed from v.496  
changed lines
  Added in v.2780

  ViewVC Help
Powered by ViewVC