Ignore:
Timestamp:
Sep 30, 2012, 8:23:45 AM (9 years ago)
Author:
Peter
Message:

fix boost macros to remove usage of tool 'tac' and change file pattern so it also detects dylibs. Same patch has been submitted upstream to the AC archive, see http://lists.gnu.org/archive/html/autoconf-archive-maintainers/2012-09/msg00026.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/ax_boost_system.m4

    r2825 r2859  
    8484      LDFLAGS_SAVE=$LDFLAGS
    8585            if test "x$ax_boost_user_system_lib" = "x"; then
    86                 for libextension in `ls $BOOSTLIBDIR/libboost_system*.a* $BOOSTLIBDIR/libboost_system*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.\(so\|a\).*$;\1;' | tac` ; do
     86                for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
    8787                     ax_lib=${libextension}
    8888            AC_CHECK_LIB($ax_lib, exit,
     
    9191        done
    9292                if test "x$link_system" != "xyes"; then
    93                 for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.\(dll\|a\).*$;\1;' | tac` ; do
     93                for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
    9494                     ax_lib=${libextension}
    9595            AC_CHECK_LIB($ax_lib, exit,
Note: See TracChangeset for help on using the changeset viewer.