~ubuntu-branches/ubuntu/trusty/diffutils/trusty-proposed

« back to all changes in this revision

Viewing changes to m4/mbrtowc.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2005-02-15 22:45:18 UTC
  • Revision ID: james.westby@ubuntu.com-20050215224518-dw9ti3me00twpcmt
Tags: upstream-2.8.1
ImportĀ upstreamĀ versionĀ 2.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#serial 4
 
2
 
 
3
dnl From Paul Eggert
 
4
 
 
5
AC_DEFUN([jm_FUNC_MBRTOWC],
 
6
[
 
7
  AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
 
8
    jm_cv_func_mbrtowc,
 
9
    [AC_TRY_LINK(
 
10
       [#include <wchar.h>],
 
11
       [mbstate_t state; return ! (sizeof state && mbrtowc);],
 
12
       jm_cv_func_mbrtowc=yes,
 
13
       jm_cv_func_mbrtowc=no)])
 
14
  if test $jm_cv_func_mbrtowc = yes; then
 
15
    AC_DEFINE(HAVE_MBRTOWC, 1,
 
16
      [Define to 1 if mbrtowc and mbstate_t are properly declared.])
 
17
  fi
 
18
])