Przeglądaj źródła

Detect shared library suffix at configure stage.

tags/v0.99.beta16
Sam Hocevar sam 16 lat temu
rodzic
commit
ed08c2d1ff
2 zmienionych plików z 11 dodań i 3 usunięć
  1. +10
    -0
      configure.ac
  2. +1
    -3
      csharp/caca-sharp.dll.config.in

+ 10
- 0
configure.ac Wyświetl plik

@@ -46,6 +46,16 @@ if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then
export PKG_CONFIG_LIBDIR=/dev/null
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`"
if test "$LT_SUFFIX" = ""; then
LT_SUFFIX=".so.$LT_MAJOR"
AC_MSG_RESULT(unknown, defaulting to $LT_SUFFIX)
else
AC_MSG_RESULT($LT_SUFFIX)
fi
AC_SUBST(LT_SUFFIX)

dnl output driver features
AC_ARG_ENABLE(slang,
[ --enable-slang slang graphics support (autodetected)])


+ 1
- 3
csharp/caca-sharp.dll.config.in Wyświetl plik

@@ -1,5 +1,3 @@
<configuration>
<dllmap dll="libcaca.dll" target="libcaca.so.@LT_MAJOR@" />
<dllmap dll="libcaca.dll" target="libcaca.dylib.@LT_MAJOR@" />
<dllmap dll="libcaca.dll" target="libcaca.sl.@LT_MAJOR@" />
<dllmap dll="libcaca.dll" target="libcaca@LT_SUFFIX@" />
</configuration>

Ładowanie…
Anuluj
Zapisz