/[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 1416 by schoenebeck, Sun Oct 14 12:06:32 2007 UTC libgig/trunk/configure.ac revision 3710 by schoenebeck, Fri Jan 10 13:32:34 2020 UTC
# Line 1  Line 1 
 AC_INIT(configure.in)  
   
1  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
2  # Library's "official" release version:  # Library's "official" release version:
3    
4  LIBGIG_RELEASE_MAJOR=3  m4_define(libgig_release_major, 4)
5  LIBGIG_RELEASE_MINOR=2  m4_define(libgig_release_minor, 2)
6  LIBGIG_RELEASE_BUILD=0  m4_define(libgig_release_build, 0.svn6)
7    
8    
9    AC_INIT([libgig],[libgig_release_major.libgig_release_minor.libgig_release_build])
10    AC_CONFIG_SRCDIR([configure.ac])
11    
12  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
13  # The following is the libtool / shared library version. This doesn't have to  # The following is the libtool / shared library version. This doesn't have to
# Line 24  LIBGIG_RELEASE_BUILD=0 Line 26  LIBGIG_RELEASE_BUILD=0
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  LIBGIG_LT_CURRENT=8  LIBGIG_LT_CURRENT=9
30  LIBGIG_LT_REVISION=0  LIBGIG_LT_REVISION=0
31  LIBGIG_LT_AGE=2  LIBGIG_LT_AGE=0
32  SHARED_VERSION_INFO="$LIBGIG_LT_CURRENT:$LIBGIG_LT_REVISION:$LIBGIG_LT_AGE"  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)  AC_SUBST(LIBGIG_RELEASE_MAJOR, libgig_release_major)
50  AC_SUBST(LIBGIG_RELEASE_MINOR)  AC_SUBST(LIBGIG_RELEASE_MINOR, libgig_release_minor)
51  AC_SUBST(LIBGIG_RELEASE_BUILD)  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    # make sure C++11 is supported by compiler
60    # (add CXXFLAGS if required [e.g. -std=c++11])
61    m4_ifdef([m4_include(m4/ax_cxx_compile_stdcxx.m4)],,
62                 [sinclude([m4/ax_cxx_compile_stdcxx.m4])])
63    AX_CXX_COMPILE_STDCXX(11, [], mandatory)
64    
65  have_audio_file_lib="false"  have_audio_file_lib="false"
66    
# Line 71  fi Line 91  fi
91    
92  AC_CHECK_HEADERS(uuid/uuid.h)  AC_CHECK_HEADERS(uuid/uuid.h)
93  AC_SEARCH_LIBS(uuid_generate, uuid)  AC_SEARCH_LIBS(uuid_generate, uuid)
94  AC_CHECK_FUNCS(uuid_generate CFUUIDCreate)  AC_CHECK_FUNCS(uuid_generate)
95    AC_CHECK_FUNCS(vasprintf)
96    
97  case "$host" in  case "$host" in
98      *mingw*|*cygwin*)      *mingw*|*cygwin*)
# Line 83  case "$host" in Line 104  case "$host" in
104  esac  esac
105  AM_CONDITIONAL(WIN32, test "$win32" = "yes")  AM_CONDITIONAL(WIN32, test "$win32" = "yes")
106    
107  if test "$ac_cv_func_uuid_generate" = no -a "$ac_cv_func_CFUUIDCreate" = no -a "$win32" = no; then  case "$host" in
108     AC_MSG_WARN([No UUID generate function found.      *-*-darwin*)
109            mac=yes
110            ;;
111        *)
112            mac=no
113            ;;
114    esac
115    AM_CONDITIONAL(MAC, test "$mac" = "yes")
116    
117    if test "$ac_cv_func_uuid_generate" = no -a "$mac" = no -a "$win32" = no; then
118        AC_MSG_WARN([No UUID generate function found.
119  *** libgig will not be able to create DLSIDs in DLS and gig files.  *** libgig will not be able to create DLSIDs in DLS and gig files.
120  *** Install libuuid from e2fsprogs to solve this. Package might be called  *** Install libuuid from e2fsprogs to solve this. Package might be called
121  *** uuid-dev, libext2fs2-devel or e2fsprogs-devel.])  *** uuid-dev, libext2fs2-devel or e2fsprogs-devel.])
122  fi  fi
123    
124  AM_CONFIG_HEADER(config.h)  AC_CONFIG_HEADERS([config.h])
125  AM_INIT_AUTOMAKE(libgig, "$LIBGIG_RELEASE_MAJOR.$LIBGIG_RELEASE_MINOR.$LIBGIG_RELEASE_BUILD")  AM_INIT_AUTOMAKE
126    
127  AC_OUTPUT( \  AC_CONFIG_FILES([\
128      Doxyfile \      Doxyfile \
129      gig.pc \      gig.pc \
130        akai.pc \
131      libgig.spec \      libgig.spec \
132      Makefile \      Makefile \
133      src/Makefile \      src/Makefile \
134      src/testcases/Makefile \      src/testcases/Makefile \
135        src/tools/Makefile \
136      doc/Makefile \      doc/Makefile \
137      man/Makefile \      man/Makefile \
138      man/dlsdump.1 \      man/dlsdump.1 \
139      man/gigdump.1 \      man/gigdump.1 \
140      man/gigextract.1 \      man/gigextract.1 \
141        man/gigmerge.1 \
142        man/gig2mono.1 \
143        man/gig2stereo.1 \
144      man/rifftree.1 \      man/rifftree.1 \
145        man/sf2dump.1 \
146        man/sf2extract.1 \
147        man/korgdump.1 \
148        man/korg2gig.1 \
149        man/akaidump.1 \
150        man/akaiextract.1 \
151      debian/Makefile \      debian/Makefile \
152      osx/Makefile \      osx/Makefile \
153      osx/libgig.xcodeproj/Makefile \      osx/libgig.xcodeproj/Makefile \
154      win32/Makefile \      win32/Makefile \
155      win32/libgig.dev \      win32/libgig.dev \
156  )  ])
157    AC_OUTPUT

Legend:
Removed from v.1416  
changed lines
  Added in v.3710

  ViewVC Help
Powered by ViewVC