]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a bug in the determination of LIB${NAME}_PREFIX.
authorBruno Haible <bruno@clisp.org>
Tue, 30 Dec 2008 23:28:13 +0000 (23:28 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:57 +0000 (12:15 +0200)
autoconf-lib-link/m4/ChangeLog
autoconf-lib-link/m4/lib-link.m4

index 4e9aa14fb0d14288aec92b977103e452eece206b..27cf7e354b615c732552d36646fc5c6d951e6584 100644 (file)
@@ -1,3 +1,9 @@
+2008-12-30  Bruno Haible  <bruno@clisp.org>
+
+       * lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
+       LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
+       Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
+
 2008-08-31  Bruno Haible  <bruno@clisp.org>
 
        Assume Solaris specific bi-arch conventions on Solaris systems.
index 7e07a424686c0a1400e2864cf9960a09dfead250..e29eead27607533659b2b74323db66662d100d19 100644 (file)
@@ -1,4 +1,4 @@
-# lib-link.m4 serial 16 (gettext-0.18)
+# lib-link.m4 serial 17 (gettext-0.18)
 dnl Copyright (C) 2001-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -446,12 +446,16 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
             case "$found_dir" in
               */$acl_libdirstem | */$acl_libdirstem/)
                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
-                LIB[]NAME[]_PREFIX="$basedir"
+                if test "$name" = '$1'; then
+                  LIB[]NAME[]_PREFIX="$basedir"
+                fi
                 additional_includedir="$basedir/include"
                 ;;
               */$acl_libdirstem2 | */$acl_libdirstem2/)
                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
-                LIB[]NAME[]_PREFIX="$basedir"
+                if test "$name" = '$1'; then
+                  LIB[]NAME[]_PREFIX="$basedir"
+                fi
                 additional_includedir="$basedir/include"
                 ;;
             esac