Changeset 8727 for trunk/configure.ac


Ignore:
Timestamp:
Jun 21, 2009, 8:57:26 AM (13 years ago)
Author:
charles
Message:

(trunk) #2222: Make DHT support a compile-time option, enabled by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r8723 r8727  
    196196dnl  dht
    197197
    198 DHT_CFLAGS="-I\$(top_srcdir)/third-party/dht"
    199 DHT_LIBS="\$(top_builddir)/third-party/dht/libdht.a"
     198
     199AC_ARG_ENABLE([dht],
     200              AS_HELP_STRING([--disable-dht],[omit DHT support]),
     201              [enable_dht=${enableval}],
     202              [enable_dht=yes])
     203if test "x$enable_dht" = "xno" ; then
     204    AC_DEFINE([WITHOUT_DHT], 1)
     205    DHT_CFLAGS=""
     206    DHT_LIBS=""
     207else
     208    DHT_CFLAGS="-I\$(top_srcdir)/third-party/dht"
     209    DHT_LIBS="\$(top_builddir)/third-party/dht/libdht.a"
     210fi
     211AM_CONDITIONAL(DHT, test "x$enable_dht" = "xyes")
    200212AC_SUBST(DHT_CFLAGS)
    201213AC_SUBST(DHT_LIBS)
     
    398410        Compiler:                      ${CXX}
    399411        System or bundled libevent:    ${libevent_source}
     412        DHT support:                   ${enable_dht}
    400413
    401414        Build OS X client:             ${build_mac}
Note: See TracChangeset for help on using the changeset viewer.