diff options
author | Toni Corvera <outlyer@gmail.com> | 2009-04-19 15:16:45 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2009-04-19 15:16:45 +0200 |
commit | 360fb6d0bf2f61d1c2cdc4989204a69da3f43c94 (patch) | |
tree | 4e337eed8dc2115265005e81da146f1db1407b49 /m4/ax_boost_program_options.m4 | |
parent | 80dcac9319ba2d932f526a4b66d59cbe292c0b36 (diff) | |
download | autoconf-archive-360fb6d0bf2f61d1c2cdc4989204a69da3f43c94.tar.gz |
AX_BOOST_{THREAD,PROGRAM_OPTIONS}: replace non-portable shell constructs
The mentioned files contain a non-portable shell construct, brace expansion
(e.g. dash and FreeBSD's sh don't support it). I guess the other ax_boost_<lib>
macro files contain similar stuff but I'm not using any other boost libs so I'd
rather not mess with them.
Diffstat (limited to 'm4/ax_boost_program_options.m4')
-rw-r--r-- | m4/ax_boost_program_options.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/ax_boost_program_options.m4 b/m4/ax_boost_program_options.m4 index 303015c..19e72b3 100644 --- a/m4/ax_boost_program_options.m4 +++ b/m4/ax_boost_program_options.m4 @@ -22,11 +22,11 @@ # # LAST MODIFICATION # -# 2008-04-12 +# 2009-04-14 # # COPYLEFT # -# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> +# Copyright (c) 2009 Thomas Porschberg <thomas@randspringer.de> # # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice @@ -75,14 +75,14 @@ AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS], AC_DEFINE(HAVE_BOOST_PROGRAM_OPTIONS,,[define if the Boost::PROGRAM_OPTIONS library is available]) BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` if test "x$ax_boost_user_program_options_lib" = "x"; then - for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;' -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do + for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do ax_lib=${libextension} AC_CHECK_LIB($ax_lib, exit, [BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break], [link_program_options="no"]) done if test "x$link_program_options" != "xyes"; then - for libextension in `ls $BOOSTLIBDIR/boost_program_options*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;' -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do + for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do ax_lib=${libextension} AC_CHECK_LIB($ax_lib, exit, [BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break], |