Changeset 2886 for libpipi


Ignore:
Timestamp:
Oct 6, 2008, 10:44:48 PM (12 years ago)
Author:
Sam Hocevar
Message:

Detect shared library suffix at configure stage.

Location:
libpipi/trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/configure.ac

    r2883 r2886  
    4343  export PKG_CONFIG_LIBDIR=/dev/null
    4444fi
     45
     46AC_MSG_CHECKING(for library suffix)
     47LT_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`"
     48if test "$LT_SUFFIX" = ""; then
     49  LT_SUFFIX=".so.$LT_MAJOR"
     50  AC_MSG_RESULT(unknown, defaulting to $LT_SUFFIX)
     51else
     52  AC_MSG_RESULT($LT_SUFFIX)
     53fi
     54AC_SUBST(LT_SUFFIX)
    4555
    4656AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
  • libpipi/trunk/pipi-sharp/pipi-sharp.dll.config.in

    r2884 r2886  
    11<configuration>
    2     <dllmap dll="libpipi.dll" target="../pipi/.libs/libpipi.so.@LT_MAJOR@" />
     2    <dllmap dll="libpipi.dll" target="../pipi/.libs/libpipi@LT_SUFFIX@" />
    33</configuration>
Note: See TracChangeset for help on using the changeset viewer.