[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.
- [libmicrohttpd] branch master updated (9eb7b4de -> 34059c30), gnunet, 2022/07/30
- [libmicrohttpd] 03/15: configure: report in summary whether static and shared version will be built, gnunet, 2022/07/30
- [libmicrohttpd] 02/15: configure: cosmetics, gnunet, 2022/07/30
- [libmicrohttpd] 05/15: microhttpd: improved description for MHD_OPTION_NONCE_NC_SIZE, gnunet, 2022/07/30
- [libmicrohttpd] 07/15: Added new MHD_OPTION_DIGEST_AUTH_RANDOM_COPY option, gnunet, 2022/07/30
- [libmicrohttpd] 10/15: test_digestauth2: added testing of 'userdigest', gnunet, 2022/07/30
- [libmicrohttpd] 01/15: digestauth: added dynamic detection and use of the algo specified by client, gnunet, 2022/07/30
- [libmicrohttpd] 15/15: MHD_digest_auth_check3(): return failed parameter if it is known, gnunet, 2022/07/30
- [libmicrohttpd] 14/15: microhttpd.h: sorted Digest Auth functions and enums, gnunet, 2022/07/30
- [libmicrohttpd] 04/15: configure: control more parameters with 'build-type',
gnunet <=
- [libmicrohttpd] 06/15: microhttpd: improved description for MHD_OPTION_DIGEST_AUTH_RANDOM, gnunet, 2022/07/30
- [libmicrohttpd] 08/15: daemon.c: changed fill value for unused members, gnunet, 2022/07/30
- [libmicrohttpd] 11/15: test_digestauth2: added testing of Auth v2 API, gnunet, 2022/07/30
- [libmicrohttpd] 13/15: test_digestauth2: added testing of RFC2069 mode, gnunet, 2022/07/30
- [libmicrohttpd] 12/15: digestauth: implemented support for RFC 2069, gnunet, 2022/07/30
- [libmicrohttpd] 09/15: test_digestauth2: test the new option, gnunet, 2022/07/30