Blame m4/wchar_t.m4

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