[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 18/36: configure: fixed detection of __FUNCTION__ magic
From: |
gnunet |
Subject: |
[libmicrohttpd] 18/36: configure: fixed detection of __FUNCTION__ magic macro |
Date: |
Thu, 01 Jun 2023 12:30:23 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 4805f6a8ee7ab47d5d785bce539ab6039c9328ee
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri May 19 14:24:36 2023 +0300
configure: fixed detection of __FUNCTION__ magic macro
---
configure.ac | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index f23a10e8..6b4a0378 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1696,7 +1696,19 @@ AS_VAR_IF([mhd_cv_macro___func___avail], ["yes"],
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stddef.h>]],[[const char
*funcname = __FUNCTION__ ; if (NULL == funcname) return 1;]])],
[[mhd_cv_macro___function___avail="yes"]],[[mhd_cv_macro___function___avail="no"]])
])
- AC_DEFINE([HAVE___FUNCTION__], [1], [Define to 1 if your compiler supports
__FUNCTION__ magic-macro.])
+ AS_VAR_IF([mhd_cv_macro___function___avail], ["yes"],
+ [AC_DEFINE([HAVE___FUNCTION__], [1], [Define to 1 if your compiler
supports __FUNCTION__ magic-macro.])],
+ [
+ AC_CACHE_CHECK([[whether __PRETTY_FUNCTION__ magic-macro is
available]],
+ [[mhd_cv_macro___pretty_function___avail]], [dnl
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stddef.h>]],[[const char
*funcname = __PRETTY_FUNCTION__ ; if (NULL == funcname) return 1;]])],
+
[[mhd_cv_macro___pretty_function___avail="yes"]],[[mhd_cv_macro___pretty_function___avail="no"]])
+ ])
+ AS_VAR_IF([mhd_cv_macro___pretty_function___avail], ["yes"],
+ [AC_DEFINE([HAVE___PRETTY_FUNCTION__], [1], [Define to 1 if your
compiler supports __PRETTY_FUNCTION__ magic-macro.])],
+ )
+ ]
+ )
]
)
AC_CACHE_CHECK([[whether __builtin_bswap32() is available]],
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 10/36: test_client_put_stop: fixed test on Darwin, (continued)
- [libmicrohttpd] 10/36: test_client_put_stop: fixed test on Darwin, gnunet, 2023/06/01
- [libmicrohttpd] 08/36: test_quiesce: fixed possible uninitialised var, gnunet, 2023/06/01
- [libmicrohttpd] 09/36: test_postprocessor_md: fixed build in C89 mode, gnunet, 2023/06/01
- [libmicrohttpd] 12/36: test_client_put_stop: avoid stress-testing the OS, gnunet, 2023/06/01
- [libmicrohttpd] 24/36: websocket_threaded_example: fixed wrong commented-out code, gnunet, 2023/06/01
- [libmicrohttpd] 22/36: test_client_put_stop: muted compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 14/36: Added specific headers inclusion and detection, gnunet, 2023/06/01
- [libmicrohttpd] 07/36: configure: renamed macro, gnunet, 2023/06/01
- [libmicrohttpd] 11/36: test_client_put_stop: fixed typo in comment, gnunet, 2023/06/01
- [libmicrohttpd] 17/36: examples/sessions.c: removed non-portable function and improved safety, gnunet, 2023/06/01
- [libmicrohttpd] 18/36: configure: fixed detection of __FUNCTION__ magic macro,
gnunet <=
- [libmicrohttpd] 06/36: test_toolarge: fixed reported error description, gnunet, 2023/06/01
- [libmicrohttpd] 13/36: test_timeout: moved to heavy tests, gnunet, 2023/06/01
- [libmicrohttpd] 16/36: test_post: fixed caseless key name match, gnunet, 2023/06/01
- [libmicrohttpd] 19/36: Simplified usage of the function name magic macros, gnunet, 2023/06/01
- [libmicrohttpd] 23/36: .gitignore: force include all *.{c,h} files, gnunet, 2023/06/01
- [libmicrohttpd] 26/36: test_client_put_stop: fixed typo in diag message, gnunet, 2023/06/01
- [libmicrohttpd] 25/36: Detect sysctl() symbols in configure, gnunet, 2023/06/01
- [libmicrohttpd] 28/36: contrib/make-dist.sh: added use of zopfli if available, gnunet, 2023/06/01
- [libmicrohttpd] 29/36: daemon.c: redesigned code for clarity and formatting, gnunet, 2023/06/01
- [libmicrohttpd] 35/36: autoinit_funcs.h: fixed warning on MSVC, gnunet, 2023/06/01