]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
disable -ldl check for *BSDs, find <soundcard.h> path
authorSASANO Takayoshi <uaa@uaa.org.uk>
Tue, 3 Jan 2023 08:33:12 +0000 (17:33 +0900)
committerJaroslav Kysela <perex@perex.cz>
Mon, 10 Jun 2024 09:03:44 +0000 (11:03 +0200)
Closes: https://github.com/alsa-project/alsa-plugins/pull/48
Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
configure.ac

index 3215b96a0e8f66e184abd119a0c7d9d5ea11019b..4ba0e730a98584185391955243917c45d104d013 100644 (file)
@@ -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]))