From 4a2bad92171ff8a9a248599f47087cfe39e93653 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 18 May 2008 09:21:20 +0000 Subject: OpenAL support --- configure.in | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index a855cca..6ea1e8c 100644 --- a/configure.in +++ b/configure.in @@ -125,6 +125,15 @@ GL_LIBS="$HOST_GL_LIBS" AC_SUBST(GL_LIBS) AC_SUBST(GL_CFLAGS) +AC_CHECK_HEADER(AL/al.h, + HAVE_OPENGL=yes + AC_DEFINE(HAVE_OPENAL, 1, [Define this if you have OpenAL]), + HAVE_OPENAL=no +) + +AL_LIBS="-lopenal" +AC_SUBST(AL_LIBS) + AC_MSG_CHECKING([looking for SDL]) KDE_FIND_PATH(sdl-config, LIBSDL_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [ AC_MSG_WARN([Could not find libSDL, check http://www.sdl.org]) @@ -184,9 +193,9 @@ AC_DEFINE_UNQUOTED(PACKAGE_LIBDIR, "$PACKAGE_LIBDIR", dnl --------------------------------------------------------------- dnl Write makefiles and config.h -AC_OUTPUT(Makefile src/Makefile src/auxiliary/Makefile src/client/Makefile \ - src/core/Makefile src/filesystem/Makefile src/game/Makefile src/math/Makefile \ - src/model/Makefile src/render/Makefile src/server/Makefile src/sys/Makefile) +AC_OUTPUT(Makefile src/Makefile src/audio/Makefile src/auxiliary/Makefile \ + src/client/Makefile src/core/Makefile src/filesystem/Makefile src/game/Makefile \ + src/math/Makefile src/model/Makefile src/render/Makefile src/server/Makefile src/sys/Makefile) dnl --------------------------------------------------------------- dnl Configuration summary -- cgit v1.2.3