diff options
author | Yang Tse <yangsita@gmail.com> | 2006-07-07 04:42:11 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-07-07 04:42:11 +0000 |
commit | 266ab95557bd4b0da407c22219328186b3da6a38 (patch) | |
tree | ebcfc578787c263276014a326405ca8cb1b4d72f /acinclude.m4 | |
parent | 0a4bba565c95cc330820cf14dc3510d28d1446df (diff) | |
download | curl-266ab95557bd4b0da407c22219328186b3da6a38.tar.gz |
Fix CURL_CHECK_HEADERS_ONCE
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 8da2989a1..6d69b36e4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -26,17 +26,18 @@ dnl CURL_CHECK_HEADERS_ONCE dnl ------------------------------------------------- dnl Check for headers if check not already done. -AC_DEFUN(CURL_CHECK_HEADERS_ONCE, [ - for i in $1; do - eval prev_check_res=\$ac_cv_header_$i +AC_DEFUN([CURL_CHECK_HEADERS_ONCE], [ + for f_hdr in $1 + do + u_hdr=`echo "$f_hdr" | sed 'y/\.\/-/___/'` + eval prev_check_res=\$ac_cv_header_$u_hdr case "$prev_check_res" in yes | no) ;; *) - AC_CHECK_HEADERS($i) + AC_CHECK_HEADERS($f_hdr) ;; esac - done ]) |