summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 8abb9d82a..756160ce8 100755
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,9 @@ if test "x$with_sdl2" == "xyes"; then
# using embedded sdl2gfx
CPPFLAGS="$CPPFLAGS -I./sdl2gfx"
+ AC_CHECK_LIB(SDL2_net, SDLNet_Init, ,
+ AC_MSG_ERROR([ *** Unable to find SDL2_net library]))
+
with_sdl2=yes
else
AC_PATH_PROG(SDL_CONFIG, sdl-config)
@@ -87,6 +90,9 @@ else
AC_MSG_ERROR([ *** Unable to find SDL_gfx library (http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx)]))
AC_CHECK_HEADERS(SDL_rotozoom.h, ,)
+ AC_CHECK_LIB(SDL_net, SDLNet_Init, ,
+ AC_MSG_ERROR([ *** Unable to find SDL_net library]))
+
with_sdl2=no
fi
@@ -239,9 +245,6 @@ fi
AM_CONDITIONAL(USE_MUMBLE, test x$with_mumble = xyes)
-AC_CHECK_LIB(SDL_net, SDLNet_Init, ,
-AC_MSG_ERROR([ *** Unable to find SDL_net library]))
-
AC_ARG_WITH(librt,[ --without-librt don't link to librt ] )
if test "x$with_librt" == "xno"; then
without_librt=yes