comparison configure.ac @ 277:6d355f1b7eaf

* Patch from Richard Ash to make building the host optional, so you can at least build the SDK even if you don't have libsndfile
author cannam
date Thu, 12 Feb 2009 12:01:58 +0000
parents b03f1aefcd6a
children bdedb6114fc6
comparison
equal deleted inserted replaced
276:e03f9d0a8dc4 277:6d355f1b7eaf
12 echo " without removing the old one first. (Continuing)" 12 echo " without removing the old one first. (Continuing)"
13 fi 13 fi
14 14
15 AC_SEARCH_LIBS([dlopen],[dl]) 15 AC_SEARCH_LIBS([dlopen],[dl])
16 16
17 PKG_CHECK_MODULES([SNDFILE],[sndfile]) 17 dnl See if the user wants to build programs, or just the SDK
18 AC_ARG_ENABLE(programs, [AS_HELP_STRING([--enable-programs],
19 [enable building of example host and RDF generator [default=yes]])],
20 PROGS_ARGUMENT=$enableval,
21 PROGS_ARGUMENT="yes")
22
23 dnl if the user wants progs, then we need to check for libsndfile
24 if test "x$PROGS_ARGUMENT" = "xyes" ; then
25 PKG_CHECK_MODULES([SNDFILE],[sndfile],
26 have_sndfile="yes", have_sndfile="no")
27 if test "x$have_sndfile" = "xyes" ; then
28 dnl all good, build everything
29 TARGETS="sdk plugins host rdfgen test"
30 else
31 dnl no libsndfile - can't build host!
32 AC_MSG_ERROR([libsndfile not found - cannot build example Vamp host!])
33 fi
34 else
35 dnl user didn't want programs - so we won't build them
36 TARGETS="sdk plugins"
37 fi
38
18 AC_SUBST(SNDFILE_CFLAGS) 39 AC_SUBST(SNDFILE_CFLAGS)
19 AC_SUBST(SNDFILE_LIBS) 40 AC_SUBST(SNDFILE_LIBS)
20 41
21 changequote(,)dnl 42 changequote(,)dnl
22 if test "x$GCC" = "xyes"; then 43 if test "x$GCC" = "xyes"; then