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:
parent
6c10ceeeb4
commit
f0094304da
10
configure.ac
10
configure.ac
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user