annotate src/vamp-plugin-sdk-2.4/configure.ac @ 23:619f715526df sv_v2.1

Update Vamp plugin SDK to 2.5
author Chris Cannam
date Thu, 09 May 2013 10:52:46 +0100
parents b7bda433d832
children
rev   line source
Chris@12 1
Chris@12 2 AC_INIT(vamp-plugin-sdk, 2.4, cannam@all-day-breakfast.com)
Chris@12 3
Chris@12 4 AC_CONFIG_SRCDIR(vamp/vamp.h)
Chris@12 5 AC_PROG_CXX
Chris@12 6 AC_HEADER_STDC
Chris@12 7 AC_C_BIGENDIAN
Chris@12 8
Chris@12 9 if pkg-config --modversion vamp-sdk >/dev/null 2>&1; then
Chris@12 10 echo "WARNING: A version of the Vamp plugin SDK is already installed."
Chris@12 11 echo " Expect worries and sorrows if you install a new version"
Chris@12 12 echo " without removing the old one first. (Continuing)"
Chris@12 13 fi
Chris@12 14
Chris@12 15 AC_SEARCH_LIBS([dlopen],[dl])
Chris@12 16
Chris@12 17 dnl See if the user wants to build programs, or just the SDK
Chris@12 18 AC_ARG_ENABLE(programs, [AS_HELP_STRING([--enable-programs],
Chris@12 19 [enable building of example host and RDF generator [default=yes]])],
Chris@12 20 PROGS_ARGUMENT=$enableval,
Chris@12 21 PROGS_ARGUMENT="yes")
Chris@12 22
Chris@12 23 dnl if the user wants progs, then we need to check for libsndfile
Chris@12 24 if test "x$PROGS_ARGUMENT" = "xyes" ; then
Chris@12 25 PKG_CHECK_MODULES([SNDFILE],[sndfile],have_sndfile="yes",have_sndfile="no")
Chris@12 26 if test "x$have_sndfile" = "xyes" ; then
Chris@12 27 dnl all good, build everything
Chris@12 28 TARGETS="sdk plugins host rdfgen test"
Chris@12 29 else
Chris@12 30 dnl no libsndfile - can't build host!
Chris@12 31 AC_MSG_ERROR([libsndfile not found - cannot build example Vamp host!
Chris@12 32 If you don't want to build the host, configure with --disable-programs.])
Chris@12 33 fi
Chris@12 34 else
Chris@12 35 dnl user didn't want programs - so we won't build them
Chris@12 36 TARGETS="sdk plugins"
Chris@12 37 fi
Chris@12 38
Chris@12 39 AC_SUBST(SNDFILE_CFLAGS)
Chris@12 40 AC_SUBST(SNDFILE_LIBS)
Chris@12 41 AC_SUBST(TARGETS)
Chris@12 42
Chris@12 43 changequote(,)dnl
Chris@12 44 if test "x$GCC" = "xyes"; then
Chris@12 45 case " $CXXFLAGS " in
Chris@12 46 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;;
Chris@12 47 *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;;
Chris@12 48 esac
Chris@12 49 fi
Chris@12 50 changequote([,])dnl
Chris@12 51
Chris@12 52 AC_SUBST(CXXFLAGS)
Chris@12 53 AC_OUTPUT([Makefile])
Chris@12 54