diff options
Diffstat (limited to 'binutils/configure.in')
-rw-r--r-- | binutils/configure.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/binutils/configure.in b/binutils/configure.in index a21e85d..e9852de 100644 --- a/binutils/configure.in +++ b/binutils/configure.in @@ -96,7 +96,7 @@ case "${host}" in esac AC_SUBST(DEMANGLER_NAME) -AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h) +AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h) AC_HEADER_SYS_WAIT ACX_HEADER_STRING AC_FUNC_ALLOCA @@ -107,6 +107,14 @@ AC_CHECK_FUNC([mkstemp], AC_CHECK_FUNC([mkdtemp], AC_DEFINE([HAVE_MKDTEMP], 1, [Define to 1 if you have the `mkdtemp' function.])) + AC_MSG_CHECKING([for mbstate_t]) + AC_TRY_COMPILE([#include <wchar.h>], + [mbstate_t teststate;], + have_mbstate_t=yes, have_mbstate_t=no) + AC_MSG_RESULT($have_mbstate_t) + if test x"$have_mbstate_t" = xyes; then + AC_DEFINE(HAVE_MBSTATE_T,1,[Define if mbstate_t exists in wchar.h.]) + fi # Some systems have frexp only in -lm, not in -lc. AC_SEARCH_LIBS(frexp, m) |