diff options
author | Bruno Haible <bruno@clisp.org> | 2010-07-19 23:30:26 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-08-26 22:57:47 +0200 |
commit | ec062d7a2671739dd977ebde3965fc93f8678a2e (patch) | |
tree | 9994c5eba453481c6616a46b4135d7b96a6dde01 /m4/lib-link.m4 | |
parent | 2c4321f6d6ab71a7bf97177ab685d67a24934fb5 (diff) | |
download | gnulib-ec062d7a2671739dd977ebde3965fc93f8678a2e.tar.gz |
Modernize AC_TRY_LINK invocations.
Diffstat (limited to 'm4/lib-link.m4')
-rw-r--r-- | m4/lib-link.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/lib-link.m4 b/m4/lib-link.m4 index 9f3be3a2fd..2ea9d6d073 100644 --- a/m4/lib-link.m4 +++ b/m4/lib-link.m4 @@ -1,4 +1,4 @@ -# lib-link.m4 serial 24 (gettext-0.18.2) +# lib-link.m4 serial 25 (gettext-0.18.2) dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -85,7 +85,8 @@ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac - AC_TRY_LINK([$3], [$4], + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[$3]], [[$4]])], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" |