Blame m4/wchar_t.m4

Packit fc043f
# wchar_t.m4 serial 1 (gettext-0.12)
Packit fc043f
dnl Copyright (C) 2002-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 <stddef.h> has the 'wchar_t' type.
Packit fc043f
dnl Prerequisite: AC_PROG_CC
Packit fc043f
Packit fc043f
AC_DEFUN([gt_TYPE_WCHAR_T],
Packit fc043f
[
Packit fc043f
  AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,
Packit fc043f
    [AC_TRY_COMPILE([#include <stddef.h>
Packit fc043f
       wchar_t foo = (wchar_t)'\0';], ,
Packit fc043f
       gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])
Packit fc043f
  if test $gt_cv_c_wchar_t = yes; then
Packit fc043f
    AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])
Packit fc043f
  fi
Packit fc043f
])