[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/02: configure: replaced more shell constructs with AS
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/02: configure: replaced more shell constructs with AS_* macros |
Date: |
Tue, 14 Dec 2021 16:23:24 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 21be8eccb987b6d5fe05d3827ff97c23b8e630cc
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Dec 13 21:26:15 2021 +0300
configure: replaced more shell constructs with AS_* macros
---
configure.ac | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/configure.ac b/configure.ac
index 53657d89..998cc385 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1021,14 +1021,17 @@ AS_IF([[test "x$enable_thread_names" = "xno"]],
AM_CONDITIONAL(HAVE_W32, [test "x$os_is_native_w32" = "xyes"])
w32_shared_lib_exp=no
-if test "x$enable_shared" = "xyes" && test "x$os_is_native_w32" = "xyes"; then
- if test "x$ac_cv_use_ms_lib_tool" = "xyes" || test -n "$DLLTOOL"; then
- w32_shared_lib_exp=yes
- else
- AC_MSG_WARN([[GNU dlltool or MS lib.exe is required for creating shared
library export on W32]])
- AC_MSG_WARN([[Export library libmicrohttpd.lib will not be created]])
- fi
-fi
+AS_IF([test "x$enable_shared" = "xyes" && test "x$os_is_native_w32" = "xyes"],
+ [
+ AS_IF([test "x$ac_cv_use_ms_lib_tool" = "xyes" || test -n "$DLLTOOL"],
+ [w32_shared_lib_exp=yes],
+ [
+ AC_MSG_WARN([[GNU dlltool or MS lib.exe is required for creating
shared library export on W32]])
+ AC_MSG_WARN([[Export library libmicrohttpd.lib will not be created]])
+ ]
+ )
+ ]
+)
AM_CONDITIONAL(W32_SHARED_LIB_EXP, [test "x$w32_shared_lib_exp" = "xyes"])
AM_CONDITIONAL(USE_MS_LIB_TOOL, [test "x$ac_cv_use_ms_lib_tool" = "xyes"])
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.