Add a sanity check for the existance of OpenAL. If not there, bail from
the configure script with an appropriate/helpful message.
This commit is contained in:
parent
9a2ee54389
commit
8c26f32d5f
12
README.OpenAL
Normal file
12
README.OpenAL
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[This file is mirrored in both the FlightGear and SimGear packages.]
|
||||||
|
|
||||||
|
You *must* have the development components of OpenAL installed on your system
|
||||||
|
to build FlightGear!" You can get a copy here:
|
||||||
|
|
||||||
|
http://www.openal.org
|
||||||
|
|
||||||
|
Build notes:
|
||||||
|
|
||||||
|
The OpenAL developers do not make "versioned" releases so we recommend that
|
||||||
|
you pull the latest version via anonymous CVS (follow the instructions at
|
||||||
|
the OpenAL web site) and build/install that.
|
@ -271,6 +271,7 @@ opengl_LIBS="$LIBS"
|
|||||||
LIBS="$base_LIBS"
|
LIBS="$base_LIBS"
|
||||||
|
|
||||||
dnl check for OpenAL libraries
|
dnl check for OpenAL libraries
|
||||||
|
OPENAL_OK="no"
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-cygwin* | *-*-mingw32*)
|
*-*-cygwin* | *-*-mingw32*)
|
||||||
dnl CygWin under Windoze.
|
dnl CygWin under Windoze.
|
||||||
@ -278,18 +279,26 @@ case "${host}" in
|
|||||||
AC_SEARCH_LIBS(alGenBuffers, openal32)
|
AC_SEARCH_LIBS(alGenBuffers, openal32)
|
||||||
AC_SEARCH_LIBS(alutInit, [ openal32 ALut ] )
|
AC_SEARCH_LIBS(alutInit, [ openal32 ALut ] )
|
||||||
LIBS="$LIBS -lwinmm -ldsound -ldxguid -lole32"
|
LIBS="$LIBS -lwinmm -ldsound -ldxguid -lole32"
|
||||||
|
if test "x$ac_cv_lib_openal32_algenbuffers" == "xyes"; then
|
||||||
|
OPENAL_OK="yes"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-apple-darwin*)
|
*-apple-darwin*)
|
||||||
dnl Mac OS X
|
dnl Mac OS X
|
||||||
|
|
||||||
LIBS="$LIBS -framework IOKit -framework OpenAL"
|
LIBS="$LIBS -framework IOKit -framework OpenAL"
|
||||||
|
# not sure how to test if OpenAL exists on MacOS (does it come by default?)
|
||||||
|
OPENAL_OK="yes"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
dnl default unix style machines
|
dnl default unix style machines
|
||||||
|
|
||||||
AC_SEARCH_LIBS(alGenBuffers, openal)
|
AC_SEARCH_LIBS(alGenBuffers, openal)
|
||||||
|
if test "x$ac_cv_lib_openal_algenbuffers" == "xyes"; then
|
||||||
|
OPENAL_OK="yes"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user