diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a594c79ceb843375e60f3b215f57eb3b2a123c1..98bfc3fcc90a30ed9e77abb1913d550b51fe0fef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ option (OPENDHT_PROXY_SERVER "Enable DHT proxy server, use Restbed and jsoncpp" option (OPENDHT_PUSH_NOTIFICATIONS "Enable push notifications support" OFF) option (OPENDHT_PROXY_SERVER_IDENTITY "Allow clients to use the node identity" OFF) option (OPENDHT_PROXY_CLIENT "Enable DHT proxy client, use Restbed and jsoncpp" OFF) -option (OPENDHT_INDEX "Build DHT indexation feature" OFF) +option (OPENDHT_INDEX "Build DHT indexation feature" ON) find_package(Doxygen) option (OPENDHT_DOCUMENTATION "Create and install the HTML based API documentation (requires Doxygen)" ${DOXYGEN_FOUND}) diff --git a/configure.ac b/configure.ac index 2890f2abdfc12ae44da54a21c1e5adf6e77d4425..f8475cc974b5ce75bd1223c674edb38d9d45cd9f 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ AC_PROG_CXX AM_PROG_AR dnl Check for logs -AC_ARG_ENABLE([logs], [AS_HELP_STRING([--disable-logs], [Disble DHT logs])]) +AC_ARG_ENABLE([logs], [AS_HELP_STRING([--disable-logs], [Disable DHT logs])]) AS_IF([test "x$enable_logs" != "xno"], [ AC_DEFINE([OPENDHT_LOG], [true], [Define if DHT logs are enabled]) ], [ @@ -33,9 +33,9 @@ AS_IF([test "x$enable_logs" != "xno"], [ ]) dnl Check for indexation -AC_ARG_ENABLE([indexation], [AS_HELP_STRING([--enable-indexation], [Enable DHT indexation])]) -AM_CONDITIONAL(ENABLE_INDEXATION, test x$enable_indexation == xyes) -AS_IF([test "x$enable_indexation" = "xyes"], [ +AC_ARG_ENABLE([indexation], [AS_HELP_STRING([--disable-indexation], [Disable DHT indexation])]) +AM_CONDITIONAL(ENABLE_INDEXATION, test x$enable_indexation != "xno") +AS_IF([test "x$enable_indexation" != "xno"], [ AC_DEFINE([OPENDHT_INDEXATION], [1], [Define if DHT indexation is enabled]) ])