Various configure and Makefile changes for MinGW (gps).
authorGary Scavone <gary@music.mcgill.ca>
Fri, 23 Nov 2007 21:31:20 +0000 (21:31 +0000)
committerStephen Sinclair <sinclair@music.mcgill.ca>
Thu, 10 Oct 2013 23:30:18 +0000 (01:30 +0200)
Makefile.in
configure.ac
install
tests/Makefile.in

index f6583777f364eda718c996116b22d8f5306e5531..dfebb0ebb3028afa36095318782bbc35865e61a6 100644 (file)
@@ -1,3 +1,4 @@
+### Do not edit -- Generated by 'configure --with-whatever' from Makefile.in
 ### RtAudio library Makefile
 
 RM = /bin/rm
index 7141656d6019a776e193b88ab1f1e4f26342ee33..78eb85a52582afa010e53b3c763a579cffb65e50 100644 (file)
@@ -85,12 +85,6 @@ case $host in
   fi
   ;;
 
-  *-sgi*)
-  AC_SUBST( audio_apis, ["-D__IRIX_AL__ -LANG:std -w"] )
-  AC_MSG_RESULT(using IRIX AL)
-  AC_CHECK_LIB(audio, alOpenPort, , AC_MSG_ERROR(IRIX audio support requires the audio library!) )
-  ;;
-
   *-apple*)
   AC_SUBST( sound_api, [_NO_API_] )
   AC_ARG_WITH(jack, [  --with-jack = choose JACK server support (unix only)], [AC_SUBST( sound_api, [-D__UNIX_JACK__] ) AC_MSG_RESULT(using JACK)], )
@@ -118,6 +112,27 @@ case $host in
   fi
   ;;
 
+  *-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__UNIX_ASIO__;] then
+    audio_apis="-D__WINDOWS_ASIO__"
+  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"
+  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__"
+  fi
+  ;;
+
   *)
   # Default case for unknown realtime systems.
   AC_MSG_ERROR(Unknown system type for realtime support!)
diff --git a/install b/install
index c161713dc855713aaa8206394d50a9f6ba2ca556..89788bebbcb8395e2260ecde64e1751de64925cb 100644 (file)
--- a/install
+++ b/install
@@ -2,7 +2,7 @@ RtAudio - a set of C++ classes which provide a common API for realtime audio inp
 
 By Gary P. Scavone, 2001-2007.
 
-To configure and compile (on Unix systems):
+To configure and compile (on Unix systems and MinGW):
 
 1. Unpack the RtAudio distribution (tar -xzf rtaudio-x.x.tar.gz).
 2. From within the directory containing this file, run configure:
@@ -18,6 +18,8 @@ A few options can be passed to configure, including:
   --with-oss = choose OSS API support (linux only)
   --with-jack = choose JACK server support (linux or Macintosh OS-X)
   --with-core = choose CoreAudio API support (Macintosh OS-X only)
+  --with-asio = choose ASIO API support (windows only)
+  --with-ds = choose DirectSound API support (windows only)
 
 Typing "./configure --help" will display all the available options.  Note that you can provide more than one "--with-" flag to the configure script to enable multiple API support.
 
@@ -25,7 +27,6 @@ If you wish to use a different compiler than that selected by configure, specify
 
   ./configure CXX=CC
 
-
 For Windows Users:
 
 Visual C++ 6.0 project files are included for the test programs in the /tests/Windows/ directory.  These projects compile API support for both ASIO and DirectSound.  Version 4.0 of RtAudio was tested with the .net compiler and it will not compile in Visual C++ 6.0 because of its non-conformance to modern C++ standards.
index 449dcf4b7ba6fae741e0b80f83a339fdfd18f240..bc17be58c4b02b205c486a9acf6a7a9b4c952d2a 100644 (file)
@@ -1,4 +1,5 @@
-### RtAudio tests Makefile - for various flavors of unix
+### Do not edit -- Generated by 'configure --with-whatever' from Makefile.in
+### RtAudio tests Makefile - for various flavors of unix and MinGW
 
 PROGRAMS = audioprobe playsaw playraw record duplex testall
 RM = /bin/rm