commit 684f8f56dbde888790abaff779b27608f050e487
parent 4753da089526e231044714131a8cb29cb7a62cb4
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Wed, 18 Mar 2026 16:46:47 +0100
configure: changed force-test-fail mark
Diffstat:
3 files changed, 47 insertions(+), 47 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -267,7 +267,7 @@ AS_CASE([${enable_compact_code}], [auto],
AC_LANG_PROGRAM([[
#ifndef __OPTIMIZE_SIZE__
#error Looks like compiler does not optimize for size
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
]],[])
],
@@ -355,7 +355,7 @@ AS_VAR_IF([enable_build_type],["neutral"],[],
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
#if ! defined(__clang__) && ! defined(__llvm__)
#error Compiler is not clang-based
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
]]
)
@@ -1233,10 +1233,10 @@ int main(void)
}
#ifdef __cplusplus
-choke me now; /* Actually, some C++ compilers *may* handle this properly,
- * but it is too tricky to test it correctly.
- * False-positive results will lead to run-time errors,
- * so just block it when C++ is used. */
+fail test here %%%@<:@-1@:>@ /* Actually, some C++ compilers *may* handle this properly,
+ * but it is nearly impossible to check it reliably.
+ * False-positive results will lead to run-time errors,
+ * so just block it when C++ is used. */
#error This is a C++ compiler
#endif
@@ -1692,7 +1692,7 @@ AC_CACHE_CHECK([whether $CC supports atomic variables],
#ifdef __STDC_NO_ATOMICS__
#error __STDC_NO_ATOMICS__ is declared
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
int main(void)
@@ -1753,7 +1753,7 @@ AS_VAR_IF([mhd_cv_c_atomic_variables],["yes"],
#ifdef __STDC_NO_ATOMICS__
#error __STDC_NO_ATOMICS__ is declared
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
int main(void)
@@ -1928,7 +1928,7 @@ AS_IF([test "x${mhd_cv_cc_attr_aligned}${mhd_cv_cc_declspec_align}${mhd_cv_c_ali
#define test_alignas(x) __declspec(align(x)))
#else
#error No alignas() implementation available
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
int main(void)
@@ -2062,15 +2062,15 @@ AS_VAR_IF([os_is_windows], ["yes"],
/* Note: check logic is reversed for easy log reading */
#ifdef WINVER
#error WINVER is defined
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
#ifdef _WIN32_WINNT
#error _WIN32_WINNT is defined
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
#ifdef NTDDI
#error NTDDI is defined
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[[(void)0]])
], [[mhd_w32_ver_preselect=no]], [[mhd_w32_ver_preselect=yes]]
@@ -2086,7 +2086,7 @@ choke me now;
#if _WIN32_WINNT+0 < 0x0501
/* Check before headers inclusion */
#error _WIN32_WINNT is less than 0x0501
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
#ifdef HAVE_SDKDDKVER_H
@@ -2098,7 +2098,7 @@ choke me now;
#if _WIN32_WINNT+0 < 0x0501
#error _WIN32_WINNT is less than 0x0501
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[[(void)0]])
], [], [
@@ -2116,11 +2116,11 @@ choke me now;
#if _WIN32_WINNT+0 == 0x0501
#error _WIN32_WINNT is 0x0501
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
#if _WIN32_WINNT+0 == 0x0502
#error _WIN32_WINNT is 0x0502
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[[(void)0]])
], [], [
@@ -2140,7 +2140,7 @@ choke me now;
#if _WIN32_WINNT+0 < 0x0600
#error _WIN32_WINNT is less than 0x0600 but greater than 0x0502
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[[(void)0]])
], [], [
@@ -2158,7 +2158,7 @@ choke me now;
#if _WIN32_WINNT+0 == 0x0600
#error _WIN32_WINNT is 0x0600
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[[(void)0]])
], [], [
@@ -2181,7 +2181,7 @@ choke me now;
#if _WIN32_WINNT+0 > 0x0600
#error _WIN32_WINNT is greater than 0x0600
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[[(void)0]])
], [
@@ -2538,7 +2538,7 @@ AS_IF([[test "x$enable_thread_names" != "xno"]],
[AC_LANG_PROGRAM([], [[
#ifdef MHD_NO_THREAD_NAMES
#error Thread names are disabled.
-choke me
+fail test here %%%@<:@-1@:>@
#endif
/* Keep in sync with mhd_threads.h */
@@ -2550,7 +2550,7 @@ choke me
(void) 0; /* no-op */
#else
#error No thread name function is available.
-choke me
+fail test here %%%@<:@-1@:>@
#endif
]])
], [
@@ -2720,12 +2720,12 @@ AC_CACHE_CHECK([fo][r current FD_SETSIZE value],[mhd_cv_fd_setsize_value],
#if (FD_SETSIZE) != (DETECTED_FD_SETZIE_VALUE)
#error The current default FD_SETSIZE value is different from ${mhd_cv_sys_fd_setsize_value}
-choke me here now
+fail test here %%%@<:@-1@:>@
#endif /* (FD_SETSIZE) != (DETECTED_FD_SETZIE_VALUE) */
#if (FD_SETSIZE) != (${mhd_cv_sys_fd_setsize_value})
#error The current default FD_SETSIZE value is different from ${mhd_cv_sys_fd_setsize_value}
-choke me here now
+fail test here %%%@<:@-1@:>@
#endif /* (FD_SETSIZE) != (${mhd_cv_sys_fd_setsize_value}) */
]],[]
)
@@ -2878,13 +2878,13 @@ AC_CACHE_CHECK([whether FD_SETSIZE is overridable],[mhd_cv_fd_setsize_overridabl
/* Test fo][r mismatch by macro check */
#if (FD_SETSIZE) != (MY_TEST_FD_SETSIZE)
#error System headers ignore custom FD_SETSIZE value, FD_SETSIZE is NOT ${test_fd_setsize}
-choke me here now;
+fail test here %%%@<:@-1@:>@
#endif /* (FD_SETSIZE) != (MY_TEST_FD_SETSIZE) */
/* Additional test fo][r mismatch by macro check */
#if (FD_SETSIZE) != (${test_fd_setsize})
#error System headers ignore custom FD_SETSIZE value, FD_SETSIZE is NOT ${test_fd_setsize}
-choke me here now;
+fail test here %%%@<:@-1@:>@
#endif /* (FD_SETSIZE) != (${test_fd_setsize}) */
static unsigned long var_fd_setsize_value = FD_SETSIZE;
@@ -3027,13 +3027,13 @@ int main(void)
/* Test fo][r mismatch by macro check */
#if (FD_SETSIZE) != (MY_TEST_FD_SETSIZE)
#error System headers ignore custom FD_SETSIZE value, FD_SETSIZE is NOT ${test_fd_setsize}
-choke me here now
+fail test here %%%@<:@-1@:>@
#endif /* (FD_SETSIZE) != (MY_TEST_FD_SETSIZE) */
/* Additional test fo][r mismatch by macro check */
#if (FD_SETSIZE) != (${test_fd_setsize})
#error System headers ignore custom FD_SETSIZE value, FD_SETSIZE is NOT ${test_fd_setsize}
-choke me here now
+fail test here %%%@<:@-1@:>@
#endif /* (FD_SETSIZE) != (${test_fd_setsize}) */
]],[]
)
@@ -4139,7 +4139,7 @@ AC_CACHE_CHECK([for usable PAGESIZE macro], [mhd_cv_macro_pagesize_usable],
#endif
#ifndef PAGESIZE
#error No PAGESIZE macro defined
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
]],
[[
@@ -4172,7 +4172,7 @@ AS_VAR_IF([[mhd_cv_macro_pagesize_usable]], [["yes"]],
#endif
#ifndef PAGESIZE
#error No PAGESIZE macro defined
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
static long ac_pgsz = PAGESIZE + 0;
]],
@@ -4207,7 +4207,7 @@ static long ac_pgsz = PAGESIZE + 0;
#endif
#ifndef PAGE_SIZE
#error No PAGE_SIZE macro defined
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
]],
[[
@@ -4240,7 +4240,7 @@ choke me now
#endif
#ifndef PAGE_SIZE
#error No PAGE_SIZE macro defined
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
static long ac_pgsz = PAGE_SIZE + 0;
]],
@@ -4427,7 +4427,7 @@ AS_IF([[test "x$enable_itc" = "xsocketpair" || test "x$enable_itc" = "xauto"]],
res = socketpair(AF_LOCAL, SOCK_STREAM, 0, arr);
#else
#error AF_LOCAL and AF_UNIX are both undefined
- choke me now;
+ fail test here %%%@<:@-1@:>@
#endif
if (res != 0) return 1;
close (arr[1]);
@@ -4665,7 +4665,7 @@ AS_VAR_IF([ac_cv_header_time_h], ["yes"],
#ifndef TIME_UTC
#error TIME_UTC must be defined to use timespec_get()
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
]],
[[
@@ -6074,7 +6074,7 @@ AS_IF([test "x$enable_https" != "xno"],
[[
#if !defined(GNUTLS_VERSION_NUMBER) || GNUTLS_VERSION_NUMBER+0 <= 0x020c14
#error Too old version of GnuTLS that requires libgcript initialisation
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
]]
)
@@ -6238,11 +6238,11 @@ choke me now
[[
#ifndef OPENSSL_VERSION_PREREQ
#error OPENSSL_VERSION_PREREQ is not defined. OpenSSL is too old.
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
#if !OPENSSL_VERSION_PREREQ(3,0)
#error OpenSSL version is too old and not suitable.
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
]]
)
diff --git a/m4/mhd_check_poll_quirks.m4 b/m4/mhd_check_poll_quirks.m4
@@ -78,7 +78,7 @@ AC_DEFUN([MHD_CHECK_POLL_QUIRKS],[dnl
# include <ws2tcpip.h>
# ifndef MHD_ITC_SOCKETPAIR_
#error Only socketpair ITC supported on native W32
-choke me now
+fail test here %%%@<:@-1@:>@
# endif
#endif
#include <stdio.h>
@@ -91,7 +91,7 @@ choke me now
/* No Additional includes */
#else
#error No selected ITC type
-choke me now
+fail test here %%%@<:@-1@:>@
#endif
#if defined(PF_INET)
diff --git a/m4/mhd_sys_extentions.m4 b/m4/mhd_sys_extentions.m4
@@ -85,19 +85,19 @@ m4_ifdef([_AC_UNDECLARED_BUILTIN],
/* Warning: test with inverted logic! */
#ifdef __FreeBSD__
#error Target is FreeBSD
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif /* __FreeBSD__ */
#ifdef __DragonFly__
#error Target is DragonFlyBSD
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif /* __DragonFly__ */
#ifdef __ANDROID__
#include <android/api-level.h>
#ifndef __ANDROID_API_O__
#error Target is Android NDK before R14
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif /* ! __ANDROID_API_O__ */
#endif /* __ANDROID__ */
]],[])],
@@ -114,7 +114,7 @@ ${mhd_mse_sys_ext_defines}
/* Warning: test with inverted logic! */
#ifdef __BSD_VISIBLE
#error __BSD_VISIBLE is defined
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[])
],
@@ -202,7 +202,7 @@ choke me now;
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#if !defined(__TOS_MVS__) && !defined (__INTERIX)
#error Target is not z/OS, AIX or Interix
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[])],
[[mhd_cv_macro_try__all_source="yes"]],
@@ -275,7 +275,7 @@ choke me now;
#include <sys/socket.h>
#else
#error No useful system features.
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
int main()
@@ -570,7 +570,7 @@ int main()
* define it with _XOPEN_SOURCE >= 500. */
#ifndef F_GETOWN
#error F_GETOWN is not defined
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
return 0;
}
@@ -1184,7 +1184,7 @@ AC_DEFUN([_MHD_CHECK_DEFINED], [dnl
m4_n([$2])dnl
[#ifndef ]$1[
#error ]$1[ is not defined
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[])
], [m4_default_nblank([$3])], [m4_default_nblank([$4])]
@@ -1277,7 +1277,7 @@ AC_DEFUN([_MHD_XOPEN_VAR_ADD], [dnl
m4_n([$3])dnl
[#if _XOPEN_SOURCE+0 < 500
#error Value of _XOPEN_SOURCE is less than 500
-choke me now;
+fail test here %%%@<:@-1@:>@
#endif
]],[[int i = 0; i++; if(i) return i]])],
[[mhd_cv_macro__xopen_source_def_fiveh="yes"]],