+
+ AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))
+ ;;
+
+ *-mingw32*)
+ AC_SUBST( sound_api, [_NO_API_] )
+ AC_ARG_WITH(asio, [ --with-asio = choose ASIO API support (windoze only)], [AC_SUBST( sound_api, [-D__WINDOWS_ASIO__] ) AC_MSG_RESULT(using ASIO)], )
+ if [test $sound_api = -D__WINDOWS_ASIO__;] then
+ audio_apis="-D__WINDOWS_ASIO__"
+ AC_SUBST( objects, ["asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"] )
+ fi
+
+ # Look for DirectSound flag
+ AC_ARG_WITH(ds, [ --with-ds = choose DirectSound API support (windoze only)], [AC_SUBST( sound_api, [-D__WINDOWS_DS__] ) AC_MSG_RESULT(using DirectSound)], )
+ if test $sound_api = -D__WINDOWS_DS__; then
+ audio_apis="-D__WINDOWS_DS__ $audio_apis"
+ LIBS="-ldsound -lwinmm $LIBS"
+ fi
+
+ # If no audio api flags specified, use DirectSound
+ if [test $sound_api = _NO_API_;] then
+ AC_SUBST( sound_api, [-D__WINDOWS_DS__] )
+ AC_MSG_RESULT(using DirectSound)
+ audio_apis="-D__WINDOWS_DS__"
+ LIBS="-ldsound -lwinmm $LIBS"
+ fi
+
+ LIBS="-lole32 $LIBS"