Tiny modification to m4/boost.m4.
authorYusuke Sato <yusukes@chromium.org>
Tue, 11 May 2010 02:33:05 +0000 (11:33 +0900)
committerPeng Huang <shawn.p.huang@gmail.com>
Mon, 23 Aug 2010 08:34:39 +0000 (16:34 +0800)
Pass $CXXFLAGS to $ac_cpp to make cross-compilation of ibus-pinyin easy.

BUG=none
TEST=ran emerge-x86-generic -a ibus-pinyin.

Review URL: http://codereview.chromium.org/2045008

m4/boost.m4

index ee3013f..343c2be 100644 (file)
@@ -67,7 +67,7 @@ dnl strip `\n' with backquotes, not the `\r'.  This results in
 dnl boost_cv_lib_version='1_37\r' for instance, which breaks
 dnl everything else.
 dnl Cannot use 'dnl' after [$4] because a trailing dnl may break AC_CACHE_CHECK
-(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
+(eval "$ac_cpp $CXXFLAGS conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
   tr -d '\r' |
   $SED -n -e "$1" >conftest.i 2>&1],
   [$3],