From: SASANO Takayoshi Date: Tue, 3 Jan 2023 08:33:12 +0000 (+0900) Subject: disable -ldl check for *BSDs, find path X-Git-Tag: v1.2.12~7 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=04916db6847765b676b457f17ac5131fb80c5ae8;p=alsa-plugins.git disable -ldl check for *BSDs, find path Closes: https://github.com/alsa-project/alsa-plugins/pull/48 Signed-off-by: SASANO Takayoshi Signed-off-by: Jaroslav Kysela --- diff --git a/configure.ac b/configure.ac index 3215b96..4ba0e73 100644 --- a/configure.ac +++ b/configure.ac @@ -17,14 +17,25 @@ AC_HEADER_STDC CC_NOUNDEFINED PKG_CHECK_MODULES(ALSA, alsa >= 1.1.6) -AC_CHECK_LIB(asound, snd_pcm_ioplug_create,, +case $host_os in +netbsd* | freebsd* | dragonfly* | openbsd*) + AC_CHECK_LIB(asound, snd_pcm_ioplug_create,, + AC_ERROR([*** libasound has no external plugin SDK])) + ;; +*) + AC_CHECK_LIB(asound, snd_pcm_ioplug_create,, AC_ERROR([*** libasound has no external plugin SDK]), -ldl) + ;; +esac AC_ARG_ENABLE([oss], AS_HELP_STRING([--disable-oss], [Disable building of OSS plugin])) -AS_IF([test "x$enable_oss" != "xno"], - [AM_CONDITIONAL(HAVE_OSS, true)], - [AM_CONDITIONAL(HAVE_OSS, false)]) +if test "x$enable_oss" != "xno"; then + AM_CONDITIONAL(HAVE_OSS, true) + AC_CHECK_HEADERS([sys/soundcard.h soundcard.h]) +else + AM_CONDITIONAL(HAVE_OSS, false) +fi AC_ARG_ENABLE([mix], AS_HELP_STRING([--disable-mix], [Disable building of upmix and vdownmix plugins]))