1 dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues.
3 dnl Copyright (C) 2007 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl Written by Eric Blake.
12 AC_DEFUN([gl_WCHAR_H],
14 AC_CACHE_CHECK([whether <wchar.h> is standalone],
15 [gl_cv_header_wchar_h_standalone],
16 [AC_COMPILE_IFELSE([[#include <wchar.h>
18 [gl_cv_header_wchar_h_standalone=yes],
19 [gl_cv_header_wchar_h_standalone=no])])
20 if test $gl_cv_header_wchar_h_standalone = yes; then
23 dnl Check for <wchar.h> (missing in Linux uClibc when built without wide
24 dnl character support).
25 AC_CHECK_HEADERS_ONCE([wchar.h])
26 if test $ac_cv_header_wchar_h = yes; then
31 AC_SUBST([HAVE_WCHAR_H])
32 gl_CHECK_NEXT_HEADERS([wchar.h])