Commit 8454e235 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

configure: Correctly detect OpenAL.

Older OpenAL alext.h doesn't include al.h/alc.h. Signed-off-by: 's avatarAlistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent be78f79e
...@@ -13694,6 +13694,8 @@ if ${ac_cv_have_openalsoft+:} false; then : ...@@ -13694,6 +13694,8 @@ if ${ac_cv_have_openalsoft+:} false; then :
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <AL/al.h>
#include <AL/alc.h>
#include <AL/alext.h> #include <AL/alext.h>
LPALCRENDERSAMPLESSOFT x; LPALCRENDERSAMPLESSOFT x;
int int
......
...@@ -1650,7 +1650,9 @@ if test "x$ac_cv_lib_openal" = xyes ...@@ -1650,7 +1650,9 @@ if test "x$ac_cv_lib_openal" = xyes
then then
AC_CACHE_CHECK([for openal-soft], ac_cv_have_openalsoft, AC_CACHE_CHECK([for openal-soft], ac_cv_have_openalsoft,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM( AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[#include <AL/alext.h> [[#include <AL/al.h>
#include <AL/alc.h>
#include <AL/alext.h>
LPALCRENDERSAMPLESSOFT x;]])],[ac_cv_have_openalsoft=yes],[ac_cv_have_openalsoft=no])) LPALCRENDERSAMPLESSOFT x;]])],[ac_cv_have_openalsoft=yes],[ac_cv_have_openalsoft=no]))
fi fi
if test "x$ac_cv_have_openalsoft" != xyes if test "x$ac_cv_have_openalsoft" != xyes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment