Adding the '--with-addons' option in configure.ac

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
xapantu 2010-06-30 17:07:42 +00:00
parent 6c10ceeeb4
commit f0094304da
3 changed files with 14 additions and 2 deletions

View File

@ -399,10 +399,18 @@ ENETTREE="src/enet"
# Check for gettext
CHECK_GETTEXT(external)
#disable/enable addons support
AC_ARG_WITH(addons,[AS_HELP_STRING([--with-addons],
[This option is used to enable/disable addons support])])
if test "x$with_addons" == "xyes" ; then
PKG_CHECK_MODULES(LIBCURL, libcurl >= 0.1)
echo "STK will compile with addons support"
AC_DEFINE(ADDONS_MANAGER)
fi
# =========================
# subst bars in Makefile.am
# =========================
AC_SUBST(irrlicht_LIBS)
AC_SUBST(fribidi_LIBS)
AC_SUBST(bullet_LIBS)

View File

@ -361,5 +361,5 @@ supertuxkart_SOURCES = \
supertuxkart_LDADD = \
$(irrlicht_LIBS) $(fribidi_LIBS) $(bullet_LIBS) $(enet_LIBS) \
$(opengl_LIBS) $(openal_LIBS) $(oggvorbis_LIBS) \
$(INTLLIBS)
$(INTLLIBS) $(LIBCURL_LIBS) $(LIBCURL_CFLAGS)

View File

@ -581,6 +581,10 @@ void cleanTuxKart()
int main(int argc, char *argv[] )
{
#ifdef ADDONS_MANAGER
std::cout << "Addons manager enabled." << std::endl;
#endif
try {
// Init the minimum managers so that user config exists, then
// handle all command line options that do not need (or must