[PATCH 09/12] Run versioning checks on aix with 'aix-soname'.

Michael Haubenwallner <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <1349192093-24173-10-git-send-email-michael.haubenwallner@salomon.at>
* tests/versioning.at: On AIX, when shared_archive_member_spec is
defined, we can run the versioning check.
---
 tests/versioning.at |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/versioning.at b/tests/versioning.at
index b66c816..226b329 100644
--- a/tests/versioning.at
+++ b/tests/versioning.at
@@ -24,7 +24,7 @@
 AT_SETUP([versioning])
 AT_KEYWORDS([libtool])
 
-eval "`$LIBTOOL --config | $EGREP '^(objdir|host_os)='`"
+eval "`$LIBTOOL --config | $EGREP '^(objdir|host_os|shared_archive_member_spec)='`"
 
 # Setup some library and program sources:
 # a library (a1), a new revision (a2), a compatible update (a3),
@@ -228,9 +228,10 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba4.lo ]dnl
 AT_CHECK([$LIBTOOL --mode=install cp liba.la $libdir], [], [ignore], [ignore])
 AT_CHECK([$LIBTOOL --mode=clean rm -f liba.la], [], [ignore], [ignore])
 
-# This test does not work on AIX, not even with runtimelinking, because
-# the linker always records the unversioned name as dependency.
-AT_CHECK([:; case $host_os in aix*) exit 77;; esac])
+# This test does work on AIX when the 'aix-soname' feature is enabled only,
+# which is reflected in shared_archive_member_spec set. Otherways, even with
+# runtimelinking, the linker always records the unversioned name as dependency.
+AT_CHECK([:; case $shared_archive_member_spec:$host_os in :aix*) exit 77;; esac])
 
 test_installed
 
-- 
1.7.3.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.