summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Sinclair <radarsat1@gmail.com>2017-08-26 23:45:34 -0300
committerStephen Sinclair <radarsat1@gmail.com>2017-08-26 23:45:34 -0300
commit0ad882762c877ed122108fa4a6b5999a8a276ebd (patch)
tree376b26cfc311868968db2b48bbdd21bfc5d10640
parentd9f967e5e3006199cf7be5dc8571bd3df9d7ed0c (diff)
For BSDs, only set OSS if Jack not found.
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7d2d085..1bda548 100644
--- a/configure.ac
+++ b/configure.ac
@@ -131,17 +131,21 @@ AS_IF([test "x$with_jack" == "xyes"], [
case $host in
*-*-netbsd*)
+ if [test "$api" == ""; ] then
AC_MSG_RESULT(using OSS)
api="$api -D__LINUX_OSS__"
LIBS="$LIBS -lossaudio"
AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))
+ fi
;;
*-*-freebsd*)
+ if [test "$api" == ""; ] then
AC_MSG_RESULT(using OSS)
api="$api -D__LINUX_OSS__"
LIBS="$LIBS -lossaudio"
AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))
+ fi
;;
*-*-linux*)