[Tux4kids-commits] r997 - tuxmath/branches/lan
akash gangil
gangil-guest at alioth.debian.org
Thu May 28 15:07:24 UTC 2009
Author: gangil-guest
Date: 2009-05-28 15:07:24 +0000 (Thu, 28 May 2009)
New Revision: 997
Modified:
tuxmath/branches/lan/configure.ac
Log:
Adding SDL_net option to configure.ac for compilation of SDL_Net lib.
Modified: tuxmath/branches/lan/configure.ac
===================================================================
--- tuxmath/branches/lan/configure.ac 2009-05-28 11:48:00 UTC (rev 996)
+++ tuxmath/branches/lan/configure.ac 2009-05-28 15:07:24 UTC (rev 997)
@@ -89,6 +89,23 @@
,
[AC_MSG_ERROR([SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer])])
+dnl SDL_Net is enabled by default
+dnl unless SDL_net is disabled at configure time.
+
+AC_ARG_WITH([sdlnet],
+ [AS_HELP_STRING([--without-sdlnet],[don't use SDL_Net even if available])],
+ [with_sdlnet=no],
+ [with_sdlnet=yes])
+
+if test "x$with_sdlnet" != xno; then
+AC_CHECK_LIB([SDL_net],
+ [SDLNet_Init],
+ ,
+ [with_sdlnet=no;
+ AC_MSG_FAILURE([SDL_Net test failed (--without-sdlnet to disable LAN support)])])
+fi
+
+
dnl SDL_Pango is enabled by default.
dnl If SDL_Pango disabled at configure time, or if we can't find it,
dnl we look for SDL_ttf:
More information about the Tux4kids-commits
mailing list