summarylogtreecommitdiffstats
path: root/0120-1-2-AC_RUN_IFELSE-replace.patch
diff options
context:
space:
mode:
Diffstat (limited to '0120-1-2-AC_RUN_IFELSE-replace.patch')
-rw-r--r--0120-1-2-AC_RUN_IFELSE-replace.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/0120-1-2-AC_RUN_IFELSE-replace.patch b/0120-1-2-AC_RUN_IFELSE-replace.patch
new file mode 100644
index 000000000000..9f5d846e3bf0
--- /dev/null
+++ b/0120-1-2-AC_RUN_IFELSE-replace.patch
@@ -0,0 +1,33 @@
+From 92b9a55e916277392c5e308a4193179637e04eae Mon Sep 17 00:00:00 2001
+From: Long Nguyen <nguyen.long.908132@gmail.com>
+Date: Thu, 29 Jul 2021 22:19:32 +0700
+Subject: [PATCH 120/N] [1/2] AC_RUN_IFELSE replace
+
+---
+ configure.ac | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index d1b8acb..ae9b1d8 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -5146,11 +5146,12 @@ case $host in
+ *-*-mingw*)
+ # check if we are linking to ucrt
+ AC_MSG_CHECKING(whether linking to ucrt)
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
++ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+ #include <stdio.h>
+- int main(){
+- _UCRT;
+- }
++ #ifndef _UCRT
++ #error no ucrt
++ #endif
++ int main(){}
+ ]])],[linking_to_ucrt=yes],[linking_to_ucrt=no])
+ AC_MSG_RESULT($linking_to_ucrt)
+ ;;
+--
+2.32.0
+