Update configure so as to fail if ladspa header is not found and --disable-ladspa is not provided

This commit is contained in:
Chris Cannam
2021-01-08 11:44:50 +00:00
parent 16487324fc
commit 13a6dd7c24
2 changed files with 1735 additions and 1575 deletions

3299
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
AC_INIT(RubberBand, 1.9.0, chris.cannam@breakfastquay.com) AC_INIT([RubberBand],[1.9.0],[chris.cannam@breakfastquay.com])
AC_ARG_ENABLE(programs, AC_ARG_ENABLE(programs,
[ --disable-programs disable compilation of programs], [ --disable-programs disable compilation of programs],
@@ -34,8 +34,6 @@ AC_SUBST(WITH_LADSPA)
AC_CONFIG_SRCDIR(src/StretcherImpl.h) AC_CONFIG_SRCDIR(src/StretcherImpl.h)
AC_PROG_CXX AC_PROG_CXX
AC_PROG_CC AC_PROG_CC
AC_HEADER_STDC
AC_C_BIGENDIAN
PKG_CHECK_MODULES([SRC],[samplerate]) PKG_CHECK_MODULES([SRC],[samplerate])
AC_SUBST(SRC_CFLAGS) AC_SUBST(SRC_CFLAGS)
@@ -52,7 +50,9 @@ AC_SUBST(FFTW_CFLAGS)
AC_SUBST(FFTW_LIBS) AC_SUBST(FFTW_LIBS)
if test "x$WITH_LADSPA" = "xyes"; then if test "x$WITH_LADSPA" = "xyes"; then
AC_CHECK_HEADERS(ladspa.h) AC_CHECK_HEADERS(ladspa.h, [], [AC_MSG_ERROR([LADSPA header not found
Consider installing the LADSPA SDK or configure with --disable-ladspa])])
fi fi
AC_CHECK_HEADERS(pthread.h) AC_CHECK_HEADERS(pthread.h)
@@ -75,5 +75,6 @@ if test "x$GCC" = "xyes"; then
fi fi
changequote([,])dnl changequote([,])dnl
AC_OUTPUT([Makefile]) AC_CONFIG_FILES([Makefile])
AC_OUTPUT