Blame m4/wint_t.m4

Packit fc043f
# wint_t.m4 serial 1 (gettext-0.12)
Packit fc043f
dnl Copyright (C) 2003 Free Software Foundation, Inc.
Packit fc043f
dnl This file is free software; the Free Software Foundation
Packit fc043f
dnl gives unlimited permission to copy and/or distribute it,
Packit fc043f
dnl with or without modifications, as long as this notice is preserved.
Packit fc043f
Packit fc043f
dnl From Bruno Haible.
Packit fc043f
dnl Test whether <wchar.h> has the 'wint_t' type.
Packit fc043f
dnl Prerequisite: AC_PROG_CC
Packit fc043f
Packit fc043f
AC_DEFUN([gt_TYPE_WINT_T],
Packit fc043f
[
Packit fc043f
  AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,
Packit fc043f
    [AC_TRY_COMPILE([#include <wchar.h>
Packit fc043f
       wint_t foo = (wchar_t)'\0';], ,
Packit fc043f
       gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])
Packit fc043f
  if test $gt_cv_c_wint_t = yes; then
Packit fc043f
    AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])
Packit fc043f
  fi
Packit fc043f
])