Try to use -fshort-wchar if possible.

This commit is contained in:
Kirill Smelkov 2004-02-03 00:09:09 +00:00 committed by Alexandre Julliard
parent df0ddd4a96
commit 5420ec4781

View file

@ -2556,6 +2556,14 @@ then
[has_gxx_no_for_scope="yes"],
[has_gxx_no_for_scope="no"])
)
CXXFLAGS="-fshort-wchar";
AC_CACHE_CHECK([for g++ -fshort-wchar option], has_gxx_short_wchar,
AC_TRY_COMPILE(,[
;
],
[has_gxx_short_wchar="yes"],
[has_gxx_short_wchar="no"])
)
CXXFLAGS="$OLDCXXFLAGS";
if test "$has_gxx_permissive" = "yes"
then
@ -2569,6 +2577,10 @@ then
then
CXXFLAGS="$CXXFLAGS -fno-for-scope"
fi
if test "$has_gxx_short_wchar" = "yes"
then
CXXFLAGS="$CXXFLAGS -fshort-wchar"
fi
fi
AC_LANG_C()