gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 04/15: configure: control more parameters with 'build-ty


From: gnunet
Subject: [libmicrohttpd] 04/15: configure: control more parameters with 'build-type'
Date: Sat, 30 Jul 2022 21:29:26 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 41dfd74cd49c356078fa272e60161a45b8a3afef
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Jul 26 15:13:15 2022 +0300

    configure: control more parameters with 'build-type'
---
 configure.ac | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index b41506e6..b12bb253 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,7 +25,6 @@ AC_PREREQ([2.64])
 LT_PREREQ([2.4.0])
 AC_INIT([GNU libmicrohttpd],[0.9.75],[libmicrohttpd@gnu.org])
 AC_CONFIG_AUX_DIR([build-aux])
-AM_INIT_AUTOMAKE([gnu] [check-news] [filename-length-max=99] [tar-v7] 
[silent-rules] [subdir-objects])
 AC_CONFIG_HEADERS([MHD_config.h])
 AC_CONFIG_MACRO_DIR([m4])
 m4_pattern_forbid([^_?MHD_[A-Z_]+_CC_])dnl
@@ -86,7 +85,7 @@ AS_VAR_IF([enable_build_type], ["no"], 
[enable_build_type="neutral"])
 AS_VAR_IF([enable_build_type], ["yes"], [AC_MSG_ERROR([[Missing TYPE for 
--enable-build-type=]])])
 AS_CASE([${enable_build_type}],
   [debug], [AC_MSG_RESULT([debug. Defaults: enable asserts, sanitizers (if any 
supported), debug information, compiler optimisation for debugging])],
-  [debugger], [AC_MSG_RESULT([debugger. Defaults: enable asserts, disable 
sanitizers, debug information, no compiler optimisation])],
+  [debugger], [AC_MSG_RESULT([debugger. Defaults: enable asserts, disable 
sanitizers, debug information, no compiler optimisation, static lib])],
   [neutral], [AC_MSG_RESULT([neutral. Defaults: use only user-specified 
compiler and linker flags])],
   [release], [AC_MSG_RESULT([release. Defaults: disable asserts, enable 
compiler optimisations])],
   [release-compact], [AC_MSG_RESULT([release-compact. Defaults: disable 
asserts, enable compiler optimisations for size, enable compact code])],
@@ -99,6 +98,30 @@ AS_VAR_IF([enable_build_type], ["neutral"], [:],
     AS_IF([test -z "${CFLAGS}"], [CFLAGS=""])
   ]
 )
+AS_VAR_IF([enable_build_type], ["debugger"],
+  [ # Build only static version unless something else is specified by the user
+    AS_IF([test -z "${enable_static}" || test "x${enable_static}" = "xyes"],
+      [
+        AS_IF([test -z "${enable_shared}"], 
+          [
+            enable_shared="no"
+            enable_static="yes"
+          ]
+        )
+      ],
+      [
+        AS_CASE([${enable_static}],[*libmicrohttpd*],
+          [AS_IF([test -z "${enable_shared}"], [enable_shared="no"])],
+        )
+      ]
+    )
+  ]
+)
+AS_CASE([${enable_build_type}],[debug|debugger],
+  [ AS_IF([test -z "${enable_silent_rules}"], [ enable_silent_rules="yes" ])]
+)
+
+AM_INIT_AUTOMAKE([gnu] [check-news] [filename-length-max=99] [tar-v7] 
[silent-rules] [subdir-objects])
 
 # Checks for programs.
 AC_PROG_AWK

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]