diff configure.FreeBSD @ 965:f8bc0e5eae0d

Updates for sdl audio out.
author atmosfear
date Sun, 03 Jun 2001 10:46:42 +0000
parents 162a78d3cc08
children
line wrap: on
line diff
--- a/configure.FreeBSD	Sun Jun 03 05:12:53 2001 +0000
+++ b/configure.FreeBSD	Sun Jun 03 10:46:42 2001 +0000
@@ -934,6 +934,7 @@
 # ---
 
 _vosrc=''
+_aosrc=''
 
 if [ $_png = yes ]; then
  _png='#define HAVE_PNG'
@@ -962,6 +963,7 @@
 if [ $_sdl = yes ]; then
  _sdldef='#define HAVE_SDL'
  _vosrc=$_vosrc' vo_sdl.c'
+ _aosrc=$_aosrc' ao_sdl.c'
 else
  _sdldef='#undef HAVE_SDL'
 fi
@@ -1185,6 +1187,19 @@
 
 EOF
 
+echo "Creating libao2/config.mak"
+
+_aoobj=`echo $_aosrc | sed -e 's/\.c/\.o/g'`
+
+cat > libao2/config.mak << EOF
+
+include ../config.mak
+
+OPTIONAL_SRCS=$_aosrc
+OPTIONAL_OBJS=$_aoobj
+
+EOF
+
 echo "Creating libac3/config.mak"
 
 if [ $_sse = yes ]; then
@@ -1266,9 +1281,11 @@
 if [ $_sdl = outdated ]; then
  echo "You have libSDL installed, but your version is outdated (earlier then"
  echo "v.1.1.7), SDL support has been disabled please update, if you want to"
- echo "use it (libSDL v1.1.8 and v1.2.0 are tested and known to work, recent"
+ echo "use it (libSDL v1.1.8 and v1.2.0/1 are tested and known to work, recent"
  echo "versions are available from http://www.libsdl.org/)."
  echo "After updating you need to re-run ./configure and recompile to enable SDL."
+ echo "(If you only want to use SDLlib audio driver older versions might work, you"
+ echo "can use --enable-sdl to force using SDLlib)"
  echo
 fi