2N/A# wint_t.m4 serial 5 (gettext-0.18.2)
2N/Adnl Copyright (C) 2003, 2007-2010 Free Software Foundation, Inc.
2N/Adnl This file is free software; the Free Software Foundation
2N/Adnl gives unlimited permission to copy and/or distribute it,
2N/Adnl with or without modifications, as long as this notice is preserved.
2N/A
2N/Adnl From Bruno Haible.
2N/Adnl Test whether <wchar.h> has the 'wint_t' type.
2N/Adnl Prerequisite: AC_PROG_CC
2N/A
2N/AAC_DEFUN([gt_TYPE_WINT_T],
2N/A[
2N/A AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
2N/A [AC_COMPILE_IFELSE(
2N/A [AC_LANG_PROGRAM(
2N/A [[
2N/A/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
2N/A <wchar.h>.
2N/A BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
2N/A before <wchar.h>. */
2N/A#include <stddef.h>
2N/A#include <stdio.h>
2N/A#include <time.h>
2N/A#include <wchar.h>
2N/A wint_t foo = (wchar_t)'\0';]],
2N/A [[]])],
2N/A [gt_cv_c_wint_t=yes],
2N/A [gt_cv_c_wint_t=no])])
2N/A if test $gt_cv_c_wint_t = yes; then
2N/A AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.])
2N/A fi
2N/A])