]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Skip need_lib_prefix.at on systems without lib prefix on libraries.
authorPeter Rosin <peda@lysator.liu.se>
Mon, 27 Sep 2010 11:44:48 +0000 (13:44 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 27 Sep 2010 11:44:48 +0000 (13:44 +0200)
* tests/need_lib_prefix.at [MSVC, OS/2]: Skip this test on
systems that do not have libraries prefixed with lib.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
ChangeLog
tests/need_lib_prefix.at

index a486ac3eb9b25d8966bffee2344126c6112c66a8..daa84fc0ed5e0876b699c54e568c3c77ba66aee2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-09-27  Peter Rosin  <peda@lysator.liu.se>
 
+       Skip need_lib_prefix.at on systems without lib prefix on libraries.
+       * tests/need_lib_prefix.at [MSVC, OS/2]: Skip this test on
+       systems that do not have libraries prefixed with lib.
+
        tests: clean up importing and exporting on w32.
        Makes the touched tests pass for MSVC when DLLs are built.
        * tests/demo/Makefile.am, tests/pdemo/Makefile.am: Define
index f6cfcfb35f6c4dd98fad32c4ad674562437b08bd..ea36da3a56f522b6953b64d49aa3f9d36c5e0123 100644 (file)
@@ -1,6 +1,6 @@
 # need-lib-prefix.at -- test libltdl functionality            -*- Autotest -*-
 #
-#   Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+#   Copyright (C) 2007, 2008, 2010 Free Software Foundation, Inc.
 #   Written by Gary V. Vaughan, 2007
 #
 #   This file is part of GNU Libtool.
 AT_SETUP([enforced lib prefix])
 AT_KEYWORDS([libltdl libtool])
 
+# Originally written to simulate a failure visible on systems
+# which need a library prefix like 'lib', such as BeOS.  Currently
+# the prefix is hardcoded as 'lib', so systems that require a
+# different prefix skips the test.
+
 AT_DATA([main.c],
 [[#include <ltdl.h>
 #include <stdio.h>
@@ -148,6 +153,13 @@ esac], [], [ignore])
 CPPFLAGS="$LTDLINCL $CPPFLAGS"
 LDFLAGS="$LDFLAGS"
 
+# Skip this test when libraries are not normally prefixed with lib.
+# E.g., for MSVC and OS/2.
+eval "`$LIBTOOL --config | $EGREP '^(libname_spec)='`"
+name=
+eval libname=\"$libname_spec\"
+AT_CHECK([test "$libname" = lib || exit 77])
+
 # Create our own libtool, forcing need_lib_prefix setting
 sed 's,^\(need_lib_prefix\)=.*$,\1=unknown,' $LIBTOOL > ./libtool
 LIBTOOL="$SHELL ./libtool"