From 43a8fae35436910946742e551ff46a1549e2d262 Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Sun, 25 Sep 2022 11:39:54 +0200 Subject: Add compile options and adjust README.md Signed-off-by: TheJackiMonster --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9fb9c7d..fc58e40 100644 --- a/configure.ac +++ b/configure.ac @@ -51,6 +51,15 @@ LT_INIT([disable-static dlopen]) AS_IF([test "x$enable_shared" = "xno"], [AC_MSG_ERROR([GNUnet works only with shared libraries, sorry])]) +AC_ARG_ENABLE([debug], +[ --enable-debug turn on debugging], +[case "${enableval}" in + yes) debug=true ;; + no) debug=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; +esac],[debug=false]) +AM_CONDITIONAL([DEBUG], [test x$debug = xtrue]) + AC_CONFIG_FILES([ Makefile include/Makefile -- cgit v1.2.3