mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Add configure cases to select OSS for netbsd and freebsd.
This commit is contained in:
16
configure.ac
16
configure.ac
@@ -134,6 +134,22 @@ api="$api -D__UNIX_JACK__"
|
|||||||
AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))])
|
AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))])
|
||||||
|
|
||||||
case $host in
|
case $host in
|
||||||
|
*-*-netbsd*)
|
||||||
|
AS_IF([test "$api" == ""], [
|
||||||
|
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!))])
|
||||||
|
;;
|
||||||
|
|
||||||
|
*-*-freebsd*)
|
||||||
|
AS_IF([test "$api" == ""], [
|
||||||
|
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!))])
|
||||||
|
;;
|
||||||
|
|
||||||
*-*-linux*)
|
*-*-linux*)
|
||||||
# Look for ALSA flag
|
# Look for ALSA flag
|
||||||
AC_ARG_WITH(alsa, [ --with-alsa = choose native ALSA API support (linux only)])
|
AC_ARG_WITH(alsa, [ --with-alsa = choose native ALSA API support (linux only)])
|
||||||
|
|||||||
Reference in New Issue
Block a user