enhanced --enable-unicode to accept ucs4 and ucs2 in addition to yes/no.
redefined the moo_uch_t type to follow the enable-unicode value
This commit is contained in:
54
configure
vendored
54
configure
vendored
@ -803,7 +803,6 @@ with_gnu_ld
|
||||
with_sysroot
|
||||
enable_libtool_lock
|
||||
enable_debug
|
||||
enable_override_uch
|
||||
enable_unicode
|
||||
enable_cxx
|
||||
enable_dynamic_module
|
||||
@ -1453,10 +1452,9 @@ Optional Features:
|
||||
optimize for fast installation [default=yes]
|
||||
--disable-libtool-lock avoid locking (might break parallel builds)
|
||||
--enable-debug build the library in the debug mode (default. no)
|
||||
--enable-override-uch Use the specified unicode character type (default.
|
||||
no)
|
||||
--enable-unicode Use the unicode character type as the default
|
||||
character type (default. yes)
|
||||
character type. one of yes, no, ucs2, ucs4 (default.
|
||||
yes)
|
||||
--enable-cxx build the library for C++ if a C++ compiler is
|
||||
available (default. yes)
|
||||
--enable-dynamic-module enable dynamic module capability(default. yes)
|
||||
@ -19417,44 +19415,6 @@ $as_echo "#define HCL_BUILD_RELEASE 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --enable-override-uch was given.
|
||||
if test "${enable_override_uch+set}" = set; then :
|
||||
enableval=$enable_override_uch; enable_override_uch=$enableval
|
||||
else
|
||||
enable_override_uch=no
|
||||
|
||||
fi
|
||||
|
||||
if test "${enable_override_uch}" = "wchar_t"
|
||||
then
|
||||
test "${ac_cv_sizeof_wchar_t}" = "0" && enable_override_uch=no
|
||||
test "${ac_cv_sizeof_wchar_t}" = "1" && enable_override_uch=no
|
||||
elif test "${enable_override_uch}" = "char16_t"
|
||||
then
|
||||
test "${ac_cv_sizeof_char16_t}" = "0" && enable_override_uch=no
|
||||
elif test "${enable_override_uch}" = "char32_t"
|
||||
then
|
||||
test "${ac_cv_sizeof_char32_t}" = "0" && enable_override_uch=no
|
||||
fi
|
||||
|
||||
if test "${enable_override_uch}" = "wchar_t"
|
||||
then
|
||||
|
||||
$as_echo "#define HCL_OVERRIDE_UCH_TYPE wchar_t" >>confdefs.h
|
||||
|
||||
elif test "${enable_override_uch}" = "char16_t"
|
||||
then
|
||||
|
||||
$as_echo "#define HCL_OVERRIDE_UCH_TYPE char16_t" >>confdefs.h
|
||||
|
||||
elif test "${enable_override_uch}" = "char32_t"
|
||||
then
|
||||
|
||||
$as_echo "#define HCL_OVERRIDE_UCH_TYPE char32_t" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
# Check whether --enable-unicode was given.
|
||||
if test "${enable_unicode+set}" = set; then :
|
||||
enableval=$enable_unicode; enable_unicode=$enableval
|
||||
@ -19468,6 +19428,16 @@ then
|
||||
|
||||
$as_echo "#define HCL_ENABLE_UNICODE 1" >>confdefs.h
|
||||
|
||||
elif test "${enable_unicode}" = "ucs2"
|
||||
then
|
||||
|
||||
$as_echo "#define HCL_ENABLE_UNICODE 2" >>confdefs.h
|
||||
|
||||
elif test "${enable_unicode}" = "ucs4"
|
||||
then
|
||||
|
||||
$as_echo "#define HCL_ENABLE_UNICODE 4" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
# Check whether --enable-cxx was given.
|
||||
|
Reference in New Issue
Block a user