~ubuntu-branches/ubuntu/saucy/wdiff/saucy

« back to all changes in this revision

Viewing changes to m4/wchar_t.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2011-04-06 13:36:32 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110406133632-7qww0186b3o5syqt
Tags: 0.6.5-1
* New upstream release.
* From upstream changelog: Never initialize or deinitialize terminals,
  as we do no cursor movement. Closes: #36622.
* Color is supported by proper use of options -w, -x, -y and -z.
  See manual for details. Closes: #514682.
* Use strip with prefix for cross-build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# wchar_t.m4 serial 3 (gettext-0.18)
 
1
# wchar_t.m4 serial 4 (gettext-0.18.2)
2
2
dnl Copyright (C) 2002-2003, 2008-2010 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
11
11
AC_DEFUN([gt_TYPE_WCHAR_T],
12
12
[
13
13
  AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t],
14
 
    [AC_TRY_COMPILE([#include <stddef.h>
15
 
       wchar_t foo = (wchar_t)'\0';], ,
16
 
       [gt_cv_c_wchar_t=yes], [gt_cv_c_wchar_t=no])])
 
14
    [AC_COMPILE_IFELSE(
 
15
       [AC_LANG_PROGRAM(
 
16
          [[#include <stddef.h>
 
17
            wchar_t foo = (wchar_t)'\0';]],
 
18
          [[]])],
 
19
       [gt_cv_c_wchar_t=yes],
 
20
       [gt_cv_c_wchar_t=no])])
17
21
  if test $gt_cv_c_wchar_t = yes; then
18
22
    AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.])
19
23
  fi