[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 219/335: configure: improved testing for supported funct
From: |
gnunet |
Subject: |
[libmicrohttpd] 219/335: configure: improved testing for supported function attributes |
Date: |
Sat, 27 Jul 2024 22:01:55 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.
commit ab9bf849de0076f3531f8a04db7c84179ea3a9d2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Jun 21 14:31:37 2024 +0200
configure: improved testing for supported function attributes
---
configure.ac | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 2c17781b..7a6534eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3810,6 +3810,8 @@ test_func(void);
extern __attribute__((used)) int
test_func(void) {return 0;}
+
+int main(void) {return test_func();}
]])
],
[mhd_cv_cc_attr_used="yes"],[mhd_cv_cc_attr_used="no"]
@@ -3831,6 +3833,8 @@ test_func(const char *ptr);
extern __attribute__((pure)) int
test_func(const char *ptr) {return (0 == (*ptr));}
+
+int main(void) {return test_func("");}
]])
],
[mhd_cv_cc_attr_pure="yes"],[mhd_cv_cc_attr_pure="no"]
@@ -3852,6 +3856,8 @@ test_func(int a);
extern __attribute__((const)) int
test_func(int a) {return a + 1;}
+
+int main(void) {return test_func(-1);}
]])
],
[mhd_cv_cc_attr_const="yes"],[mhd_cv_cc_attr_const="no"]
@@ -3873,6 +3879,8 @@ test_extrn_func(void);
extern __attribute__((visibility("default"))) int
test_extrn_func(void) {return 0;}
+
+int main(void) {return test_extrn_func();}
]])
],
[mhd_cv_cc_attr_visibility_default="yes"],[mhd_cv_cc_attr_visibility_default="no"]
@@ -3889,10 +3897,12 @@ AS_VAR_IF([mhd_cv_cc_attr_visibility_default],["yes"],
[
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
__attribute__((visibility("internal"))) int
-test_extrn_func(void);
+test_intern_func(void);
__attribute__((visibility("internal"))) int
-test_extrn_func(void) {return 0;}
+test_intern_func(void) {return 0;}
+
+int main(void) {return test_intern_func();}
]])
],
[mhd_cv_cc_attr_visibility_internal="yes"],[mhd_cv_cc_attr_visibility_internal="no"]
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 208/335: .gitignore: updated, (continued)
- [libmicrohttpd] 208/335: .gitignore: updated, gnunet, 2024/07/27
- [libmicrohttpd] 210/335: configure: improved tests for non-standard platforms, gnunet, 2024/07/27
- [libmicrohttpd] 193/335: GENERATED: add missed options, gnunet, 2024/07/27
- [libmicrohttpd] 191/335: GENERATED: fixed options addressing, gnunet, 2024/07/27
- [libmicrohttpd] 211/335: configure: check for AF_UNIX headers, gnunet, 2024/07/27
- [libmicrohttpd] 200/335: configure: rewritten checks for inline and force inline keywords, gnunet, 2024/07/27
- [libmicrohttpd] 199/335: configure: added separate controls for MHD log and HTTP auto replies, gnunet, 2024/07/27
- [libmicrohttpd] 213/335: configure: check for socklen_t and substitute with a replacement if not available, gnunet, 2024/07/27
- [libmicrohttpd] 194/335: GENERATED: fixed macro names instead of enum values, gnunet, 2024/07/27
- [libmicrohttpd] 206/335: configure: renamed _MHD_NORETURN -> MHD_NORETURN_, gnunet, 2024/07/27
- [libmicrohttpd] 219/335: configure: improved testing for supported function attributes,
gnunet <=
- [libmicrohttpd] 218/335: configure: added checks for sokets-related symbols declarations, gnunet, 2024/07/27
- [libmicrohttpd] 222/335: this_API_is_TERRIBLE: even more, gnunet, 2024/07/27
- [libmicrohttpd] 189/335: GENERATED: use correct function attributes, gnunet, 2024/07/27
- [libmicrohttpd] 205/335: configure: supported C23 'noreturn' keyword, gnunet, 2024/07/27
- [libmicrohttpd] 215/335: configure: added support for 'restrict', gnunet, 2024/07/27
- [libmicrohttpd] 226/335: -fix typo, gnunet, 2024/07/27
- [libmicrohttpd] 223/335: Initial draft M2 (WIP), gnunet, 2024/07/27
- [libmicrohttpd] 216/335: configure: added tests for 'unreachable' supported keywords, gnunet, 2024/07/27
- [libmicrohttpd] 217/335: configure: added checks for socketpair(), gnunet, 2024/07/27
- [libmicrohttpd] 209/335: this_API_is_TERRIBLE.txt: updated, gnunet, 2024/07/27