From: Michael Wallner Date: Fri, 15 Apr 2016 09:38:44 +0000 (+0200) Subject: configure: improve detection of wchar_t X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=91635e212543d071fdf5035a72120e98e9ec4dda;p=m6w6%2Fext-psi configure: improve detection of wchar_t --- diff --git a/m4/stddef.m4 b/m4/stddef.m4 index b6ee82e..fd52d2a 100644 --- a/m4/stddef.m4 +++ b/m4/stddef.m4 @@ -6,6 +6,13 @@ PSI_CHECK_STDDEF() { PSI_TYPE(size_t, uint) PSI_CONST(SIZE_MAX, int) PSI_TYPE(wchar_t, int) + if PSI_SH_TEST_SIZEOF(wchar_t); then :; else + # some platforms fail to provide wchar_t in stddef.h + unset ac_cv_sizeof_wchar_t + unset ax_cv_decl_wchar_t_signed + AC_CHECK_HEADERS(wchar.h) + PSI_TYPE(wchar_t, int) + fi PSI_CONST(WCHAR_MIN, int) PSI_CONST(WCHAR_MAX, int) }