Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS work.
authorBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 17:19:33 +0000 (19:19 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 17:19:33 +0000 (19:19 +0200)
ChangeLog
m4/lib-link.m4

index 91a213f..379dcf3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-06-21  Bruno Haible  <bruno@clisp.org>
+
+       Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
+       work.
+       * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
+       together with LIB${NAME}, LTLIB${NAME}.
+       Reported by Sam Steingold <sds@gnu.org>.
+
 2009-06-20  Jim Meyering  <meyering@redhat.com>
 
        tests: make sc_require_test_exit_idiom more generic
index 2144203..f811055 100644 (file)
@@ -1,4 +1,4 @@
-# lib-link.m4 serial 19 (gettext-0.18)
+# lib-link.m4 serial 20 (gettext-0.18)
 dnl Copyright (C) 2001-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -210,6 +210,9 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
   LTLIB[]NAME=
   INC[]NAME=
   LIB[]NAME[]_PREFIX=
+  dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
+  dnl computed. So it has to be reset here.
+  HAVE_LIB[]NAME=
   rpathdirs=
   ltrpathdirs=
   names_already_handled=