Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
authorBruno Haible <bruno@clisp.org>
Sun, 26 Apr 2009 16:59:33 +0000 (18:59 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Apr 2009 16:59:33 +0000 (18:59 +0200)
ChangeLog
m4/lib-prefix.m4

index 1d934526bf0b49ec902259e67d4f340ff0039e5a..66e7c28c741964172cf565b44df6accd95cdb932 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-26  Bruno Haible  <bruno@clisp.org>
+
+       Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
+       * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
+       "../" or "..".
+
 2009-04-26  Bruno Haible  <bruno@clisp.org>
 
        * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
index 3bdc0fc574abd05e85a4f380131fb0f5bb363d80..4b7ee3358debcbd4991f12831aba90601bb4d361 100644 (file)
@@ -1,5 +1,5 @@
-# lib-prefix.m4 serial 6 (gettext-0.18)
-dnl Copyright (C) 2001-2005, 2008 Free Software Foundation, Inc.
+# lib-prefix.m4 serial 7 (gettext-0.18)
+dnl Copyright (C) 2001-2005, 2008-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,
 dnl with or without modifications, as long as this notice is preserved.
@@ -206,6 +206,9 @@ sixtyfour bits
           if test -d "$searchdir"; then
             case "$searchdir" in
               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
+              */../ | */.. )
+                # Better ignore directories of this form. They are misleading.
+                ;;
               *) searchdir=`cd "$searchdir" && pwd`
                  case "$searchdir" in
                    */lib64 ) acl_libdirstem=lib64 ;;