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

Diff of /linuxsampler/trunk/configure.ac

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

revision 2365 by persson, Sat Sep 8 17:21:38 2012 UTC revision 2565 by schoenebeck, Tue May 20 12:21:39 2014 UTC
# Line 3  Line 3 
3    
4  m4_define(linuxsampler_release_major, 1)  m4_define(linuxsampler_release_major, 1)
5  m4_define(linuxsampler_release_minor, 0)  m4_define(linuxsampler_release_minor, 0)
6  m4_define(linuxsampler_release_build, 0.svn18)  m4_define(linuxsampler_release_build, 0.svn40)
7    
8    
9  AC_INIT([linuxsampler],[linuxsampler_release_major.linuxsampler_release_minor.linuxsampler_release_build])  AC_INIT([linuxsampler],[linuxsampler_release_major.linuxsampler_release_minor.linuxsampler_release_build])
10  AC_CONFIG_SRCDIR([configure.in])  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 35  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT Line 35  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT
35  # the LSCP specification version this LinuSampler release complies with:  # the LSCP specification version this LinuSampler release complies with:
36    
37  LSCP_RELEASE_MAJOR=1  LSCP_RELEASE_MAJOR=1
38  LSCP_RELEASE_MINOR=5  LSCP_RELEASE_MINOR=6
39    
40  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.])  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.])
41  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.])  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.])
42    
43    AC_PROG_CC
44  AC_PROG_CXX  AC_PROG_CXX
45  AC_LIBTOOL_WIN32_DLL  AC_LIBTOOL_WIN32_DLL
46  AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
47    AC_PROG_YACC
48    
49  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
50  AC_SUBST(SHARED_VERSION_INFO)  AC_SUBST(SHARED_VERSION_INFO)
# Line 126  have_unix98="no" Line 128  have_unix98="no"
128  )  )
129  AC_LANG_POP([C])  AC_LANG_POP([C])
130  AC_MSG_RESULT([$have_unix98])  AC_MSG_RESULT([$have_unix98])
131  if test "$have_unix98" = "no" -a "$have_windows" = "0"; then  if test "$have_unix98" = "no" -a "$have_windows" = "0" -a "$mac" = "no" ; then
132      if test "x$HAVE_UNIX98" = "x"; then      if test "x$HAVE_UNIX98" = "x"; then
133          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"
134          echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run"          echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run"
# Line 182  fi Line 184  fi
184  AC_CHECK_HEADERS(uuid/uuid.h)  AC_CHECK_HEADERS(uuid/uuid.h)
185  AC_SEARCH_LIBS(uuid_generate, uuid)  AC_SEARCH_LIBS(uuid_generate, uuid)
186    
187    # In case Bison is available, determine the exact version, since we need to
188    # use different custom parser code for Bison 2.x vs. Bison 3.x generated
189    # parser yacc tables.
190    if echo "$YACC" | grep -q bison; then
191        # NOTE: m4 removes [], that's why it needs to be escaped
192        bison_version=[`$YACC --version | head -n 1 | sed -e 's/[^0-9.]*\([-0-9.]\+\)$/\1/'`]
193        bison_version_major=`echo $bison_version | cut -d. -f1`
194        bison_version_minor=`echo $bison_version | cut -d. -f2`
195        AC_DEFINE_UNQUOTED(HAVE_BISON_MAJ,$bison_version_major,[Define to the major version of the GNU Bison program installed.])
196        AC_DEFINE_UNQUOTED(HAVE_BISON_MIN,$bison_version_minor,[Define to the minor version of the GNU Bison program installed.])
197    fi
198    
199    
200    
201  ###########################################################################  ###########################################################################
# Line 290  if test "$config_jack_driver" = "yes"; t Line 304  if test "$config_jack_driver" = "yes"; t
304          AC_SUBST(JACK_CFLAGS)          AC_SUBST(JACK_CFLAGS)
305          linuxsampler_save_LIBS=$LIBS          linuxsampler_save_LIBS=$LIBS
306          LIBS="$JACK_LIBS $LIBS"          LIBS="$JACK_LIBS $LIBS"
307          AC_CHECK_FUNCS(jack_client_name_size jack_client_open)          AC_CHECK_FUNCS(jack_client_name_size jack_client_open \
308                           jack_on_info_shutdown)
309          LIBS=$linuxsampler_save_LIBS          LIBS=$linuxsampler_save_LIBS
310          have_audio_output_driver="true";          have_audio_output_driver="true";
311      fi      fi
# Line 627  fi Line 642  fi
642  AC_SUBST(SNDFILE_CFLAGS)  AC_SUBST(SNDFILE_CFLAGS)
643  AC_SUBST(SNDFILE_LIBS)  AC_SUBST(SNDFILE_LIBS)
644    
645  # Check for Vorbis support in libsndfile  # Check for Vorbis and FLAC support in libsndfile
646  linuxsampler_save_CFLAGS=$CFLAGS  linuxsampler_save_CFLAGS=$CFLAGS
647  CFLAGS="$SNDFILE_CFLAGS $CFLAGS"  CFLAGS="$SNDFILE_CFLAGS $CFLAGS"
648  AC_CHECK_DECLS([SF_FORMAT_VORBIS], [], [], [[#include <sndfile.h>]])  AC_CHECK_DECLS([SF_FORMAT_VORBIS, SF_FORMAT_FLAC], [], [], [[#include <sndfile.h>]])
649    
650  # Check for loop functionality in libsndfile  # Check for loop functionality in libsndfile
651  AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],,  AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],,
# Line 1309  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIAN Line 1324  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIAN
1324  # Create Build Files  # Create Build Files
1325    
1326  AC_CONFIG_HEADERS([config.h])  AC_CONFIG_HEADERS([config.h])
1327  AM_INIT_AUTOMAKE  AM_INIT_AUTOMAKE([subdir-objects])
1328    
1329  AC_LANG([C++])  AC_LANG([C++])
1330    
# Line 1321  AC_CONFIG_FILES([\ Line 1336  AC_CONFIG_FILES([\
1336      Makefile \      Makefile \
1337      man/Makefile \      man/Makefile \
1338      man/linuxsampler.1 \      man/linuxsampler.1 \
1339        man/lscp.1 \
1340      src/Makefile \      src/Makefile \
1341      src/db/Makefile \      src/db/Makefile \
1342      src/network/Makefile \      src/network/Makefile \
# Line 1342  AC_CONFIG_FILES([\ Line 1358  AC_CONFIG_FILES([\
1358      src/hostplugins/lv2/manifest.ttl \      src/hostplugins/lv2/manifest.ttl \
1359      src/hostplugins/vst/Makefile \      src/hostplugins/vst/Makefile \
1360      src/hostplugins/au/Makefile \      src/hostplugins/au/Makefile \
1361        src/shell/Makefile \
1362      linuxsampler.spec \      linuxsampler.spec \
1363      debian/Makefile \      debian/Makefile \
1364      Artwork/Makefile \      Artwork/Makefile \

Legend:
Removed from v.2365  
changed lines
  Added in v.2565

  ViewVC Help
Powered by ViewVC