diff options
author | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-20 13:35:38 +0000 |
---|---|---|
committer | brolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-20 13:35:38 +0000 |
commit | 33a62e3f367250cd0c22fea39dffcc6b9a6f33ac (patch) | |
tree | 671dda9b98d314335b4825d12e41d06427ebd8ce /gcc/configure.in | |
parent | 293c562e711efa3e1a5fb9c36437a9a259528e45 (diff) | |
download | gcc-33a62e3f367250cd0c22fea39dffcc6b9a6f33ac.tar.gz |
Mon Jul 20 16:16:38 1998 Dave Brolley <brolley@cygnus.com>
* configure.in (enable_c_mbchar): New configure option.
(extra_cpp_objs): Always available now.
* cexp.y (mbchar.h): #include it.
(yylex): Handle Multibyte characters in character literals.
* cccp.c (mbchar.h): #include it.
(main): Set character set based on LANG environment variable.
(rescan): Handle multibyte characters in comments.
(skip_if_group): See above.
(validate_else): See above.
(skip_to_end_of_comment): See above.
(macarg1): See above.
(discard_comments): See above.
(rescan): Handle multibyte characters in string and character literals.
(collect_expansion): See above.
(skip_quoted_string): See above.
(macroexpand): See above.
(macarg1): See above.
(discard_comments): See above.
(change_newlines): See above.
* c-lex.c (mbchar.h): #include it.
(GET_ENVIRONMENT): New macro.
(init_lex): Set character set based on LANG environment variable.
(yylex): Handle multibyte characters in character literals.
(yylex): Handle multibyte characters in string literals.
* Makefile.in (mbchar.o): New target.
(cccp$(exeext)): @extra_cpp_objs@ is always available.
(cppmain$(exeext)): @extra_cpp_objs@ is always available.
* mbchar.[ch]: New files for multibyte character handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21303 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.in')
-rw-r--r-- | gcc/configure.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/configure.in b/gcc/configure.in index 6791547ec87..b4c1aca12d7 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -84,7 +84,7 @@ AC_DEFINE(ENABLE_CHECKING) # Enable use of cpplib for C. cpp_main=cccp AC_ARG_ENABLE(c-cpplib, -[ --enable-c-cpplib Use cpplib for C.], +[ --enable-c-cpplib Use cpplib for C and C++.], if [[[ x$enable_c_cpplib != xno ]]]; then extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o" extra_c_objs="${extra_c_objs} prefix.o" @@ -93,6 +93,13 @@ if [[[ x$enable_c_cpplib != xno ]]]; then cpp_main=cppmain fi) +# Enable Multibyte Characters for C/C++ +AC_ARG_ENABLE(c-mbchar, +[ --enable-c-mbchar Enable multibyte characters for C and C++.], +if [[[ x$enable_c_mbchar != xno ]]]; then + extra_c_flags=-DMULTIBYTE_CHARS=1 +fi) + # Enable Haifa scheduler. AC_ARG_ENABLE(haifa, [ --enable-haifa Use the experimental scheduler. @@ -193,6 +200,9 @@ AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \ index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ sysconf isascii gettimeofday) +# Make sure wchar_t is available +#AC_CHECK_TYPE(wchar_t, unsigned int) + GCC_FUNC_VFPRINTF_DOPRNT GCC_FUNC_PRINTF_PTR @@ -3585,6 +3595,7 @@ AC_SUBST(extra_programs) AC_SUBST(extra_parts) AC_SUBST(extra_c_objs) AC_SUBST(extra_cxx_objs) +AC_SUBST(extra_cpp_objs) AC_SUBST(extra_c_flags) AC_SUBST(extra_objs) AC_SUBST(host_extra_gcc_objs) |