diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 39 |
1 files changed, 20 insertions, 19 deletions
@@ -3355,10 +3355,30 @@ case $_backend in case $_sdlversion in 2.0.*) add_line_to_config_mk "USE_SDL2 = 1" + append_var SDL_NET_LIBS "-lSDL2_net" ;; *) + append_var SDL_NET_LIBS "-lSDL_net" ;; esac + + # Check for SDL_Net + echocheck "SDL_Net" + if test "$_sdlnet" = auto ; then + _sdlnet=no + cat > $TMPC << EOF +#include "SDL_net.h" +int main(int argc, char *argv[]) { SDLNet_Init(); return 0; } +EOF + cc_check $LIBS $INCLUDES $SDL_NET_CFLAGS $SDL_NET_LIBS && _sdlnet=yes + fi + if test "$_sdlnet" = yes ; then + append_var LIBS "$SDL_NET_LIBS" + append_var INCLUDES "$SDL_NET_CFLAGS" + fi + define_in_config_if_yes "$_sdlnet" 'USE_SDL_NET' + echo "$_sdlnet" + ;; esac @@ -4135,25 +4155,6 @@ EOF esac # -# 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 $SDL_NET_CFLAGS $SDL_NET_LIBS -lSDL_net && _sdlnet=yes -fi -if test "$_sdlnet" = yes ; then - append_var LIBS "$SDL_NET_LIBS -lSDL_net" - append_var INCLUDES "$SDL_NET_CFLAGS" -fi -define_in_config_if_yes "$_sdlnet" 'USE_SDL_NET' -echo "$_sdlnet" - -# # Check for libcurl to be present # if test "$_libcurl" != "no"; then |