diff options
author | yufeng <yufeng@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-15 22:29:53 +0000 |
---|---|---|
committer | yufeng <yufeng@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-15 22:29:53 +0000 |
commit | 77cefa5994faa7388de80a5decf554b5c11971b5 (patch) | |
tree | ca0040e6f5809dab43b687170a45ded7474dded2 /libstdc++-v3/acinclude.m4 | |
parent | 341ddba9c8de2d1ecae28cf147a4e3a21ce97ed2 (diff) | |
download | gcc-77cefa5994faa7388de80a5decf554b5c11971b5.tar.gz |
2011-07-15 Yufeng Zhang <yufeng.zhang@arm.com>
* config/locale/newlib/ctype_members.cc: New file.
* acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale
kind: newlib. Configure to use the newlib specific
ctype_members.cc when with_newlib is enabled.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176339 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/acinclude.m4')
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 349473cb814..6f6810de235 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1756,7 +1756,7 @@ dnl AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [ GLIBCXX_ENABLE(clocale,auto,[[[=MODEL]]], [use MODEL for target locale package], - [permit generic|gnu|ieee_1003.1-2001|yes|no|auto]) + [permit generic|gnu|ieee_1003.1-2001|newlib|yes|no|auto]) # Deal with gettext issues. Default to not using it (=no) until we detect # support for it later. Let the user turn it off via --e/d, but let that @@ -1767,7 +1767,7 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [ [], [enable_nls=yes]) - # Either a known packaage, or "auto" + # Either a known package, or "auto" if test $enable_clocale = no || test $enable_clocale = yes; then enable_clocale=auto fi @@ -1784,7 +1784,11 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [ enable_clocale_flag=darwin ;; *) - enable_clocale_flag=generic + if test x"$with_newlib" = x"yes"; then + enable_clocale_flag=newlib + else + enable_clocale_flag=generic + fi ;; esac fi @@ -1918,6 +1922,22 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [ CTIME_CC=config/locale/generic/time_members.cc CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h ;; + newlib) + AC_MSG_RESULT(newlib) + + CLOCALE_H=config/locale/generic/c_locale.h + CLOCALE_CC=config/locale/generic/c_locale.cc + CCODECVT_CC=config/locale/generic/codecvt_members.cc + CCOLLATE_CC=config/locale/generic/collate_members.cc + CCTYPE_CC=config/locale/newlib/ctype_members.cc + CMESSAGES_H=config/locale/generic/messages_members.h + CMESSAGES_CC=config/locale/generic/messages_members.cc + CMONEY_CC=config/locale/generic/monetary_members.cc + CNUMERIC_CC=config/locale/generic/numeric_members.cc + CTIME_H=config/locale/generic/time_members.h + CTIME_CC=config/locale/generic/time_members.cc + CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h + ;; esac # This is where the testsuite looks for locale catalogs, using the |