Ignore:
Timestamp:
May 14, 2011, 3:06:27 AM (9 years ago)
Author:
Sam Hocevar
Message:

build: add a --disable-network compilation flag and get rid of most of
the CELLOS_LV2 ifdefs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/configure.ac

    r640 r651  
    2121
    2222AC_ARG_ENABLE(debug,
    23   [  --enable-debug          build debug versions of the game (default no)])
     23  [  --enable-debug          build debug versions of the game (default disabled)])
    2424AC_ARG_ENABLE(release,
    25   [  --enable-release        build final release of the game (default no)])
     25  [  --enable-release        build final release of the game (default disabled)])
    2626AC_ARG_ENABLE(nonfree,
    27   [  --disable-nonfree       disable non-free data (default no)])
     27  [  --disable-nonfree       disable non-free data (default enabled)])
     28AC_ARG_ENABLE(network,
     29  [  --disable-network       disable networking (default enabled)])
    2830
    2931AC_ARG_WITH(assetdir,
     
    8688  ac_cv_have_nonfree="yes"
    8789fi
    88 if test "${enable_nonfree}" = "no"; then
     90if test "x${enable_nonfree}" = xno; then
    8991  ac_cv_have_nonfree="no"
    9092fi
     
    9597fi
    9698AC_SUBST(distdir)
    97 AM_CONDITIONAL(HAVE_NONFREE, test "${ac_cv_have_nonfree}" = "yes")
     99AM_CONDITIONAL(HAVE_NONFREE, test "x${ac_cv_have_nonfree}" = xyes)
     100
     101dnl  Is networking enabled?
     102if test "x${enable_network}" != xno; then
     103  AC_DEFINE(HAVE_NETWORK, 1, Define to 1 to enable networking)
     104fi
     105AM_CONDITIONAL(HAVE_NETWORK, test "x${enable_network}" != xno)
    98106
    99107# Optimizations
Note: See TracChangeset for help on using the changeset viewer.