aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-14 01:39:49 +0000
committerYang Tse <yangsita@gmail.com>2008-08-14 01:39:49 +0000
commit34281925d69110345ccddea20fa4a99881fe25cb (patch)
treeb158740030bb427d40b4e0dc50af83fa9404eb39
parente90c4fa770bdfb75f6419e529061e27d71ff16ab (diff)
Change CURL_CHECK_DEF_INTXX_C suffix definition detection.
Add debug tracing for CURL_CHECK_DEF_INTXX_C.
-rw-r--r--acinclude.m442
1 files changed, 38 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 82da3f5da..c8216e7ba 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -152,19 +152,53 @@ AC_DEFUN([CURL_CHECK_DEF_INTXX_C], [
AC_LANG_SOURCE(
ifelse($2,,,[$2])[[
#ifdef $1
-CURL_DEF_TOKEN $1(_)
+$1(CURL_DEF_TOKEN)
#endif
]])
],[
+
+ echo " " >&6
+ echo "DEBUG: preproc IF-ACTION branch for $1 -----" >&6
+ echo "DEBUG: ------- preproc source follows: " >&6
+ sed 's/^/cpp-src> /' conftest.$ac_ext >&6
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.yang2 1>conftest.yang1
+ echo "DEBUG: ------- preproc STDOUT follows: " >&6
+ sed 's/^/cpp-out> /' conftest.yang1 >&6
+ echo "DEBUG: ------- preproc STDERR follows: " >&6
+ sed 's/^/cpp-err> /' conftest.yang2 >&6
+ echo "DEBUG: ------- preproc STDERR ends in above line. " >&6
+ echo "DEBUG: ------- shell tmp_suf follows: " >&6
+
tmp_suf=`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/.*'$1'//' 2>/dev/null | \
- "$SED" 's/[[^'$curl_cv_alnum']]//g' 2>/dev/null`
+ "$SED" 's/.*CURL_DEF_TOKEN//' 2>/dev/null | \
+ "$SED" 's/[[^'"$curl_cv_alnum"']]//g' 2>/dev/null`
+
+ echo "DEBUG: $tmp_suf" >&6
+ echo "DEBUG: ------- shell tmp_suf ends in above line. " >&6
+
if test -z "$tmp_suf"; then
tmp_suf=""
fi
+
+ ],[
+
+ echo " " >&6
+ echo "DEBUG: preproc ELSE-ACTION branch for $1 -----" >&6
+ echo "DEBUG: ------- preproc source follows: " >&6
+ sed 's/^/cpp-src> /' conftest.$ac_ext >&6
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.yang2 1>conftest.yang1
+ echo "DEBUG: ------- preproc STDOUT follows: " >&6
+ sed 's/^/cpp-out> /' conftest.yang1 >&6
+ echo "DEBUG: ------- preproc STDERR follows: " >&6
+ sed 's/^/cpp-err> /' conftest.yang2 >&6
+ echo "DEBUG: ------- preproc STDERR ends in above line. " >&6
+
])
+
+ rm -f conftest.yang1
+ rm -f conftest.yang2
+
if test -z "$tmp_suf"; then
AS_VAR_SET(ac_HaveDef, no)
else