21 lines
1.0 KiB
Diff
21 lines
1.0 KiB
Diff
--- a/configure.ac 2021-04-26 20:35:11.000000000 +1000
|
|
+++ b/configure.ac 2021-09-29 20:31:32.372329878 +1000
|
|
@@ -302,9 +302,16 @@
|
|
# Look for Convolution flag
|
|
AC_ARG_WITH(convolution, [AS_HELP_STRING([--with-convolution],[choose audio DSP convolution support])])
|
|
if test "x$with_convolution" = "xyes" ; then
|
|
+ if test "x${with_pkg_config}" = "xyes" ; then
|
|
+ PKG_CHECK_MODULES(
|
|
+ [sndfile], [sndfile],
|
|
+ [CFLAGS="${sndfile_CFLAGS} ${CFLAGS}"
|
|
+ LIBS="${sndfile_LIBS} ${LIBS}"], AC_MSG_ERROR(Convolution support requires the sndfile library.))
|
|
+ else
|
|
+ AC_CHECK_LIB([sndfile], [sf_open], , AC_MSG_ERROR(Convolution support requires the sndfile library -- libsndfile1-dev suggested!))
|
|
+ fi
|
|
AM_INIT_AUTOMAKE([subdir-objects])
|
|
AC_DEFINE([CONFIG_CONVOLUTION], 1, [Include audio DSP convolution support.])
|
|
- AC_CHECK_LIB([sndfile], [sf_open], , AC_MSG_ERROR(Convolution support requires the sndfile library -- libsndfile1-dev suggested!))
|
|
fi
|
|
AM_CONDITIONAL([USE_CONVOLUTION], [test "x$with_convolution" = "xyes"])
|
|
|