don't test for msvcrt under Unix nor libw under Windows in wcslen() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dd5cad7aee
commit
7a30264c3f
28
configure.in
28
configure.in
@ -2749,22 +2749,24 @@ WCHAR_OK=0
|
||||
if test "$wx_cv_sizeof_wchar_t" != "0"; then
|
||||
dnl check for wcslen
|
||||
WCHAR_LINK=
|
||||
AC_CHECK_LIB(c, wcslen, [
|
||||
AC_CHECK_FUNCS(wcslen, [
|
||||
AC_DEFINE(HAVE_WCSLEN)
|
||||
WCHAR_OK=1
|
||||
])
|
||||
|
||||
if test "$WCHAR_OK" = 0; then
|
||||
if test "$TOOLKIT" = "MSW"; then
|
||||
AC_CHECK_LIB(msvcrt, wcslen, [
|
||||
AC_DEFINE(HAVE_WCSLEN)
|
||||
WCHAR_OK=1
|
||||
], [
|
||||
AC_CHECK_LIB(w, wcslen, [
|
||||
AC_DEFINE(HAVE_WCSLEN)
|
||||
WCHAR_LINK=" -lw"
|
||||
WCHAR_OK=1
|
||||
])
|
||||
])
|
||||
|
||||
if test "$TOOLKIT" = "MSW" -a "$WCHAR_OK" = 0; then
|
||||
AC_CHECK_LIB(msvcrt, wcslen, [
|
||||
AC_DEFINE(HAVE_WCSLEN)
|
||||
WCHAR_OK=1
|
||||
])
|
||||
else
|
||||
AC_CHECK_LIB(w, wcslen, [
|
||||
AC_DEFINE(HAVE_WCSLEN)
|
||||
WCHAR_LINK=" -lw"
|
||||
WCHAR_OK=1
|
||||
])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user