CONFIGURE: Added detection for SDL_net

This commit is contained in:
Eugene Sandulenko 2016-05-11 15:52:20 +02:00 committed by Alexander Tkachev
parent e4e2ec390d
commit 52240c68c7

19
configure vendored
View file

@ -117,6 +117,7 @@ done
# #
# Default lib behavior yes/no/auto # Default lib behavior yes/no/auto
_vorbis=auto _vorbis=auto
_sdlnet=auto
_tremor=auto _tremor=auto
_tremolo=no _tremolo=no
_flac=auto _flac=auto
@ -3676,6 +3677,24 @@ int main(void) { return 0; }
EOF EOF
cc_check -lm && append_var LIBS "-lm" cc_check -lm && append_var LIBS "-lm"
#
# Check for SDL_Net
#
echocheck "SDL_Net"
if test "$_sdlnet" = auto ; then
_sdlnet=no
cat > $TMPC << EOF
#include "SDL/SDL_net.h"
int main(int argc, char *argv[]) { SDLNet_Init(); return 0; }
EOF
cc_check $LIBS $INCLUDES -lSDL_net && _sdlnet=yes
fi
if test "$_sdlnet" = yes ; then
LIBS="$LIBS -lSDL_net"
fi
define_in_config_if_yes "$_sdlnet" 'USE_SDL_NET'
echo "$_sdlnet"
# #
# Check for Ogg Vorbis # Check for Ogg Vorbis
# #