From fae9a58cd5f17f3b94460b1cc0ca8a633714bfdc Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Mon, 15 Mar 2004 01:11:11 +0000 Subject: [PATCH] - added automatic disabling of sound or opengl if not detected SVN-Revision: 230 --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e96169080..2ecf8b49e 100644 --- a/configure.ac +++ b/configure.ac @@ -82,7 +82,9 @@ LDFLAGS="$LDFLAGS $SDL_LIBS" dnl Checks for additional libraries. if test "x${enable_sound}" != "xno"; then - AC_CHECK_LIB(SDL_mixer, SDL_OpenAudio, ,AC_MSG_ERROR(SDL_mixer library required)) + AC_CHECK_LIB(SDL_mixer, SDL_OpenAudio,, + [CFLAGS="$CFLAGS -DNOSOUND" + enable_sound="no"]) fi AC_CHECK_LIB(SDL_image, IMG_Load, ,AC_MSG_ERROR(SDL_image library required)) @@ -95,7 +97,9 @@ if test "x${enable_opengl}" != "xno"; then CFLAGS="$CFLAGS $X_CFLAGS" LDFLAGS="$LDFLAGS $X_LIBS" - AC_CHECK_LIB(GL, glBegin, ,AC_MSG_ERROR(GL library required)) + AC_CHECK_LIB(GL, glBegin,, + [CFLAGS="$CFLAGS -DNOOPENGL" + enable_opengl="no"]) fi # FIXME: Evil -- 2.11.0