diff options
author | Albert Chin <china@thewrittenword.com> | 2011-09-27 21:59:18 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-09-27 22:01:58 +0200 |
commit | a2d4a98ddd2388c42a183a4dbee8befeac5e09f2 (patch) | |
tree | 64dc83eb1bc3ee0413ead0ff0bb14cf29b0f61eb | |
parent | b4fccc1d8e9bb8a05436e5f0bf8f4910a20ad9af (diff) | |
download | curl-a2d4a98ddd2388c42a183a4dbee8befeac5e09f2.tar.gz |
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.
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index bf97b94cb..3a3122d58 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -51,7 +51,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="" |