summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Sinclair <radarsat1@gmail.com>2017-08-26 23:52:18 -0300
committerStephen Sinclair <radarsat1@gmail.com>2017-08-26 23:52:18 -0300
commit1b3e2e0b8eaca2f8719883b9636dc33144c7c6d2 (patch)
tree2437e71e8d3da64f3defa5e448e6923e1f94dbe9
parent0ad882762c877ed122108fa4a6b5999a8a276ebd (diff)
Use AS_IF.
-rw-r--r--configure.ac10
1 files changed, 4 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 1bda548..c732d98 100644
--- a/configure.ac
+++ b/configure.ac
@@ -131,21 +131,19 @@ AS_IF([test "x$with_jack" == "xyes"], [
case $host in
*-*-netbsd*)
- if [test "$api" == ""; ] then
+ 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!))
- fi
+ AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))])
;;
*-*-freebsd*)
- if [test "$api" == ""; ] then
+ 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!))
- fi
+ AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))])
;;
*-*-linux*)