diff options
author | Bruno Haible <bruno@clisp.org> | 2010-07-19 23:36:41 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-08-30 22:58:34 +0200 |
commit | 6adfd11ac958a11340174d4b016d45e3b5d4b55a (patch) | |
tree | 6194f4055c9d8fb52e03ca615eab213f25d165d0 /gettext-runtime/m4/lcmessage.m4 | |
parent | a70dbe527164d7ba8e3e3803cea18c5da1e2b996 (diff) | |
download | external_gettext-6adfd11ac958a11340174d4b016d45e3b5d4b55a.zip external_gettext-6adfd11ac958a11340174d4b016d45e3b5d4b55a.tar.gz external_gettext-6adfd11ac958a11340174d4b016d45e3b5d4b55a.tar.bz2 |
Modernize AC_TRY_LINK invocations.
Diffstat (limited to 'gettext-runtime/m4/lcmessage.m4')
-rw-r--r-- | gettext-runtime/m4/lcmessage.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gettext-runtime/m4/lcmessage.m4 b/gettext-runtime/m4/lcmessage.m4 index 1a70543..232da73 100644 --- a/gettext-runtime/m4/lcmessage.m4 +++ b/gettext-runtime/m4/lcmessage.m4 @@ -1,4 +1,4 @@ -# lcmessage.m4 serial 6 (gettext-0.18) +# lcmessage.m4 serial 7 (gettext-0.18.2) dnl Copyright (C) 1995-2002, 2004-2005, 2008-2010 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation @@ -22,8 +22,12 @@ dnl Ulrich Drepper <drepper@cygnus.com>, 1995. AC_DEFUN([gt_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES], - [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], - [gt_cv_val_LC_MESSAGES=yes], [gt_cv_val_LC_MESSAGES=no])]) + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include <locale.h>]], + [[return LC_MESSAGES]])], + [gt_cv_val_LC_MESSAGES=yes], + [gt_cv_val_LC_MESSAGES=no])]) if test $gt_cv_val_LC_MESSAGES = yes; then AC_DEFINE([HAVE_LC_MESSAGES], [1], [Define if your <locale.h> file defines LC_MESSAGES.]) |