- { build: 'autotools', sys: 'msys' , env: 'x86_64' , tflags: '!19 !504 !704 !705 !1233', config: '--enable-debug --disable-threaded-resolver', name: 'default' }
- { build: 'cmake' , sys: 'msys' , env: 'x86_64' , tflags: 'skipall' , config: '-DENABLE_DEBUG=ON -DENABLE_THREADED_RESOLVER=OFF', name: 'default' }
- { build: 'autotools', sys: 'msys' , env: 'x86_64' , tflags: '!19 !504 !704 !705 !1233', config: '', name: 'default R' }
- - { build: 'autotools', sys: 'mingw64', env: 'x86_64' , tflags: 'skiprun' , config: '--enable-debug --disable-threaded-resolver --disable-curldebug --enable-static=no', name: 'default' }
+ - { build: 'autotools', sys: 'mingw64', env: 'x86_64' , tflags: 'skiprun' , config: '--enable-debug --disable-threaded-resolver --disable-curldebug --enable-static=no --with-windows-unicode', name: 'default' }
# FIXME: WebSockets test results ignored due to frequent failures on native Windows:
- { build: 'cmake' , sys: 'mingw64', env: 'x86_64' , tflags: '~2301 ~2302' , config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=ON', type: 'Debug', name: 'schannel U' }
- { build: 'cmake' , sys: 'ucrt64' , env: 'ucrt-x86_64' , tflags: 'skiprun' , config: '-DENABLE_DEBUG=OFF -DBUILD_SHARED_LIBS=ON -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=ON -DENABLE_CURLDEBUG=ON', type: 'Release', name: 'schannel R TrackMemory' }
AM_CONDITIONAL([CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS],
[test "x$versioned_symbols" = 'xyes'])
+dnl ----------------------------
+dnl check Windows Unicode option
+dnl ----------------------------
+
+want_winuni="no"
+if test "$curl_cv_native_windows" = "yes"; then
+ AC_MSG_CHECKING([whether to enable Windows Unicode (Windows native builds only)])
+ OPT_WINUNI="default"
+ AC_ARG_WITH(windows-unicode,
+ AS_HELP_STRING([--with-windows-unicode],[enable Windows Unicode])
+ AS_HELP_STRING([--without-windows-unicode], [disable Windows Unicode (default)]),
+ OPT_WINUNI=$withval)
+ case "$OPT_WINUNI" in
+ yes)
+ CPPFLAGS="${CPPFLAGS} -DUNICODE -D_UNICODE"
+ want_winuni="yes"
+ AC_MSG_RESULT([yes])
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+ esac
+fi
+
+AM_CONDITIONAL([USE_UNICODE], [test "$want_winuni" = "yes"])
+
dnl -------------------------------------------------
dnl check winidn option before other IDN libraries
dnl -------------------------------------------------
])
fi
+if test "x$want_winuni" = "xyes"; then
+ SUPPORT_FEATURES="$SUPPORT_FEATURES Unicode"
+fi
if test "x$want_debug" = "xyes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES Debug"
fi
19.3 Do not use GNU libtool on OpenBSD
19.4 Package curl for Windows in a signed installer
19.5 make configure use --cache-file more and better
- 19.6 build curl with Windows Unicode support
20. Test suite
20.1 SSL tunnel
See https://github.com/curl/curl/issues/7753
-19.6 build curl with Windows Unicode support
-
- The user wants an easier way to tell autotools to build curl with Windows
- Unicode support, like ./configure --enable-windows-unicode
-
- See https://github.com/curl/curl/issues/7229
-
20. Test suite
20.1 SSL tunnel
endif
AM_CPPFLAGS += -DBUILDING_CURL
+AM_LDFLAGS =
+if USE_UNICODE
+AM_LDFLAGS += -municode
+endif
+
include Makefile.inc
# CURL_FILES comes from Makefile.inc