Changeset 2888 for libcaca/trunk


Ignore:
Timestamp:
Oct 6, 2008, 10:45:02 PM (11 years ago)
Author:
Sam Hocevar
Message:

Detect shared library suffix at configure stage.

Location:
libcaca/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r2871 r2888  
    4646  export PKG_CONFIG_LIBDIR=/dev/null
    4747fi
     48
     49AC_MSG_CHECKING(for library suffix)
     50LT_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`"
     51if test "$LT_SUFFIX" = ""; then
     52  LT_SUFFIX=".so.$LT_MAJOR"
     53  AC_MSG_RESULT(unknown, defaulting to $LT_SUFFIX)
     54else
     55  AC_MSG_RESULT($LT_SUFFIX)
     56fi
     57AC_SUBST(LT_SUFFIX)
    4858
    4959dnl output driver features
  • libcaca/trunk/csharp/caca-sharp.dll.config.in

    r2882 r2888  
    11<configuration>
    2     <dllmap dll="libcaca.dll" target="libcaca.so.@LT_MAJOR@" />
    3     <dllmap dll="libcaca.dll" target="libcaca.dylib.@LT_MAJOR@" />
    4     <dllmap dll="libcaca.dll" target="libcaca.sl.@LT_MAJOR@" />
     2    <dllmap dll="libcaca.dll" target="libcaca@LT_SUFFIX@" />
    53</configuration>
Note: See TracChangeset for help on using the changeset viewer.