libunistring: Detect libunistring also when it depends on libiconv.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Apr 2010 16:01:52 +0000 (18:01 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Apr 2010 16:01:52 +0000 (18:01 +0200)
ChangeLog
m4/libunistring.m4

index a3acc98..58d16d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-11  Bruno Haible  <bruno@clisp.org>
+
+       libunistring: Detect libunistring also when it depends on libiconv.
+       * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
+       the second AC_LIB_HAVE_LINKFLAGS invocation.
+
 2010-04-11  James Youngman  <jay@gnu.org>
 
        close-stream: declare local scalars to be "const"
index 4f1146f..19350d0 100644 (file)
@@ -1,4 +1,4 @@
-# libunistring.m4 serial 2
+# libunistring.m4 serial 3
 dnl Copyright (C) 2009-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,
@@ -23,6 +23,9 @@ AC_DEFUN([gl_LIBUNISTRING],
     dnl Second try, with -liconv.
     AC_REQUIRE([AM_ICONV])
     if test -n "$LIBICONV"; then
+      dnl We have to erase the cached result of the first AC_LIB_HAVE_LINKFLAGS
+      dnl invocation, otherwise the second one will not be run.
+      unset ac_cv_libunistring
       glus_save_LIBS="$LIBS"
       LIBS="$LIBS $LIBICONV"
       AC_LIB_HAVE_LINKFLAGS([unistring], [],