diff options
author | Albert Chin <china@thewrittenword.com> | 2011-09-27 21:59:27 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-09-27 21:59:27 +0200 |
commit | f394cd55c88663c31a9ed49a10399fb2c9ab6044 (patch) | |
tree | ba86980d8a266f89ebdd0190c6319c6f4f144091 /acinclude.m4 | |
parent | 3d84eb3bbca244da90e17750a31520a1b1b24e88 (diff) | |
download | c-ares-f394cd55c88663c31a9ed49a10399fb2c9ab6044.tar.gz c-ares-f394cd55c88663c31a9ed49a10399fb2c9ab6044.tar.bz2 c-ares-f394cd55c88663c31a9ed49a10399fb2c9ab6044.zip |
configure - m4: make CURL_CHECK_DEF ignore leading whitespace on symbol def
When using Sun C compiler the preprocessor somehow inserts an extra space
in front of replaced symbol, breaking CURL_CHECK_DEF macro. To workaround
this, macro CURL_CHECK_DEF now ignores all leading whitespace in front of
symbol substitution result.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 9606131..16cbe4a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -30,7 +30,7 @@ CURL_DEF_TOKEN $1 ],[ tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ - "$SED" 's/.*CURL_DEF_TOKEN[[ ]]//' 2>/dev/null | \ + "$SED" 's/.*CURL_DEF_TOKEN[[ ]][[ ]]*//' 2>/dev/null | \ "$SED" 's/[["]][[ ]]*[["]]//g' 2>/dev/null` if test -z "$tmp_exp" || test "$tmp_exp" = "$1"; then tmp_exp="" |