blob: 9f5d846e3bf0842ed91255bbe1334d4ee2c8c0ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|