Skip to content

Instantly share code, notes, and snippets.

@tom-tan
Created May 18, 2017 09:41
Show Gist options
  • Save tom-tan/d263fffd7e499f531c8abfe344a14c0b to your computer and use it in GitHub Desktop.
Save tom-tan/d263fffd7e499f531c8abfe344a14c0b to your computer and use it in GitHub Desktop.
--- configure 2014-10-27 13:56:10.000000000 +0900
+++ ../Bridger_r2014-12-01/configure 2017-05-18 18:22:22.000000000 +0900
@@ -15813,8 +15813,8 @@ cat >>conftest.$ac_ext <<_ACEOF
#include <boost/version.hpp>
boost-lib-version = BOOST_LIB_VERSION
_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- tr -d '\r' |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed '/^#/d' | sed -e 's/^[ ]+//' |
+ tr -d '\n' |
$SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then
boost_cv_lib_version=`cat conftest.i`
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment