Use AS_IF.
authorStephen Sinclair <radarsat1@gmail.com>
Sun, 27 Aug 2017 02:52:18 +0000 (23:52 -0300)
committerStephen Sinclair <radarsat1@gmail.com>
Sun, 27 Aug 2017 02:52:18 +0000 (23:52 -0300)
configure.ac

index 1bda54892d8c66afd827ad88347ecccdc1e66721..c732d989df231204f57e11193f433cc530230ade 100644 (file)
@@ -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*)