From 88240aec241381721f47df3fae0abb7ede07aa35 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 8 Jan 2007 22:45:18 +0000 Subject: Bomb out with an error in configure if SDL_mixer or SDL_net are not found. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 826 --- configure.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 6b515665..ed78c4ba 100644 --- a/configure.in +++ b/configure.in @@ -31,13 +31,17 @@ SDL_LIBS=`echo $SDL_LIBS | sed 's/mwindows/mconsole/'` AC_CHECK_LIB(SDL_mixer,Mix_LoadMUS,[ dnl AC_DEFINE(HAVE_LIBSDL_MIXER) SDLMIXER_LIBS="$SDLMIXER_LIBS -lSDL_mixer" -],echo "*** Compiling without SDL_mixer installed probably won't work" -,$SDL_LIBS $SDLMIXER_LIBS) +],[ + echo "*** Could not find SDL_mixer. Please install it." + exit -1 +],$SDL_LIBS $SDLMIXER_LIBS) AC_CHECK_LIB(SDL_net,SDLNet_UDP_Send,[ SDLNET_LIBS="$SDLNET_LIBS -lSDL_net" -],echo "*** Compiling without SDL_net installed probably won't work" -,$SDL_LIBS $SDLNET_LIBS) +],[ + echo "*** Could not find SDL_net. Please install it." + exit -1 +] ,$SDL_LIBS $SDLNET_LIBS) AC_CHECK_TOOL(WINDRES, windres, ) -- cgit v1.2.3