From: Ingo Ruhnke Date: Mon, 15 Mar 2004 01:11:11 +0000 (+0000) Subject: - added automatic disabling of sound or opengl if not detected X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fae9a58cd5f17f3b94460b1cc0ca8a633714bfdc;p=supertux.git - added automatic disabling of sound or opengl if not detected SVN-Revision: 230 --- 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