aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Tan <jtanx@outlook.com>2017-07-31 21:24:38 +1000
committerDaniel Stenberg <daniel@haxx.se>2017-08-01 01:04:45 +0200
commitf262b3586cb40f6fdb265188456cfb0ff4e4ed2a (patch)
tree06bd6f4818343f68c6cdb3c6a4c014072ea39688
parent909283ae5a057487265ce9d8b684cf01451d096a (diff)
configure: fix the check for IdnToUnicode
Fixes #1669 Closes #1713
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 5104c9ecd..edcb3931f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2782,6 +2782,7 @@ if test "$want_winidn" = "yes"; then
clean_LDFLAGS="$LDFLAGS"
clean_LIBS="$LIBS"
WINIDN_LIBS="-lnormaliz"
+ WINIDN_CPPFLAGS="-DWINVER=0x0600"
#
if test "$want_winidn_path" != "default"; then
dnl path has been specified
@@ -2797,7 +2798,11 @@ if test "$want_winidn" = "yes"; then
#
AC_MSG_CHECKING([if IdnToUnicode can be linked])
AC_LINK_IFELSE([
- AC_LANG_FUNC_LINK_TRY([IdnToUnicode])
+ AC_LANG_PROGRAM([[
+ #include <windows.h>
+ ]],[[
+ IdnToUnicode(0, NULL, 0, NULL, 0);
+ ]])
],[
AC_MSG_RESULT([yes])
tst_links_winidn="yes"