I would like to propose that in the configure script we test for
enable_sdltest before carrying on with the test for PNG and OGG support:

diff -Naur --exclude='*~' wesnoth-1.4.4/configure wesnoth-1.4.4.new/configure
@@ -13967,6 +13901,7 @@
 { $as_echo "$as_me:$LINENO: checking for PNG support in SDL_image" >&5
 $as_echo_n "checking for PNG support in SDL_image... " >&6; }
 
+if test "x$enable_sdltest" = "xyes" ; then
 OLD_CPPFLAGS=$CPPFLAGS
 OLD_CFLAGS=$CFLAGS
 OLD_LIBS=$LIBS
@@ -14048,7 +13983,7 @@
 CPPFLAGS=$OLD_CPPFLAGS
 CFLAGS=$OLD_CFLAGS
 LIBS=$OLD_LIBS
-
+fi
 
 #######################################################################
 # Check for OGG support in SDL_mixer                                  #
@@ -14065,6 +14000,7 @@
        { $as_echo "$as_me:$LINENO: checking for OGG support in SDL_mixer" >&5
 $as_echo_n "checking for OGG support in SDL_mixer... " >&6; }
 
+       if test "x$enable_sdltest" = "xyes" ; then
         OLD_CPPFLAGS=$CPPFLAGS
        OLD_CFLAGS=$CFLAGS
         OLD_LIBS=$LIBS
@@ -14144,6 +14080,7 @@
         CPPFLAGS=$OLD_CPPFLAGS
         CFLAGS=$OLD_CFLAGS
         LIBS=$OLD_LIBS
+       fi
     fi
 fi

-- 
Jesse Alama ([EMAIL PROTECTED])


_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev

Reply via email to