Browse Source

Fix the library suffix detection.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2894 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam 16 years ago
parent
commit
1fe42b20a3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      configure.ac

+ 2
- 2
configure.ac View File

@@ -44,10 +44,10 @@ if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then
fi

AC_MSG_CHECKING(for library suffix)
LT_SUFFIX="`./libtool -n --mode=link gcc -o libTEST.la -version-number 123:666:999 -rpath / | xargs -n 1 | sed -ne 's/.*libTEST\(@<:@^, ()0-9@:>@*\)123\(@<:@^, ()0-9@:>@*\).*/\1'$LT_MAJOR'\2/p' | grep -v '\.$' | head -n 1`"
LT_SUFFIX="`./libtool -n --mode=link gcc -o libTEST.la -no-undefined -version-number 123:666:999 -rpath / | xargs -n 1 | sed -ne 's/.*libTEST\(@<:@^, ()0-9@:>@*\)123\(@<:@^, ()0-9@:>@*\).*/\1'$LT_MAJOR'\2/p' | grep -v '\.$' | head -n 1`"
if test "$LT_SUFFIX" = ""; then
LT_SUFFIX=".so.$LT_MAJOR"
AC_MSG_RESULT(unknown, defaulting to $LT_SUFFIX)
AC_MSG_RESULT([unknown, defaulting to $LT_SUFFIX])
else
AC_MSG_RESULT($LT_SUFFIX)
fi


Loading…
Cancel
Save