diff options
author | Yang Tse <yangsita@gmail.com> | 2008-08-08 11:34:08 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-08-08 11:34:08 +0000 |
commit | dabd3cd355ecd8aba2dd6351d225e9c9d950807a (patch) | |
tree | a8a7fdd23ec788390c2b677697ab734d633bd3d9 /acinclude.m4 | |
parent | fa001f27a5edfe081d8205763c5d6142eb685004 (diff) | |
download | curl-dabd3cd355ecd8aba2dd6351d225e9c9d950807a.tar.gz |
Add debug tracing for CURL_CHECK_DEF
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index dacd9a057..0374f88ac 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -97,14 +97,51 @@ CURL_DEF_TOKEN $1 #endif ]]) ],[ + + echo " " >&6 + echo "DEBUG: preproc IF-ACTION branch for $1 -----" >&6 + echo "DEBUG: ------- preproc source follows: " >&6 + sed 's/^/| /' conftest.$ac_ext >&6 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.yang2 1>conftest.yang1 + echo "DEBUG: ------- preproc STDOUT follows: " >&6 + sed 's/^/| /' conftest.yang1 >&6 + echo "DEBUG: ------- preproc STDERR follows: " >&6 + sed 's/^/| /' conftest.yang2 >&6 + echo "DEBUG: ------- preproc STDERR ends in above line. " >&6 + echo "DEBUG: ------- shell tmp_exp follows: " >&6 + 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/[["]][[ ]]*[["]]//g' 2>/dev/null` + + echo "DEBUG: $tmp_exp" >&6 + if test "$tmp_exp" = "$1"; then tmp_exp="" + echo "DEBUG: $tmp_exp" >&6 fi + + echo "DEBUG: ------- shell tmp_exp ends in above line. " >&6 + + ],[ + + echo " " >&6 + echo "DEBUG: preproc ELSE-ACTION branch for $1 -----" >&6 + echo "DEBUG: ------- preproc source follows: " >&6 + sed 's/^/| /' conftest.$ac_ext >&6 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.yang2 1>conftest.yang1 + echo "DEBUG: ------- preproc STDOUT follows: " >&6 + sed 's/^/| /' conftest.yang1 >&6 + echo "DEBUG: ------- preproc STDERR follows: " >&6 + sed 's/^/| /' conftest.yang2 >&6 + echo "DEBUG: ------- preproc STDERR ends in above line. " >&6 + ]) + + rm -f conftest.yang1 + rm -f conftest.yang2 + if test -z "$tmp_exp"; then AS_VAR_SET([ac_HaveDef], [no]) ifelse($3,,[AC_MSG_RESULT([no])]) |