annotate configure.ac @ 541:0e32c328b02a tip

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