From: Yang Tse Date: Fri, 7 Jul 2006 14:03:17 +0000 (+0000) Subject: Substitution of the literal '-' is only done if it's the first or last character. X-Git-Tag: curl-7_15_5~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=551a041283fbc2417f5ed782edd4213296d8b23d;p=thirdparty%2Fcurl.git Substitution of the literal '-' is only done if it's the first or last character. --- diff --git a/acinclude.m4 b/acinclude.m4 index 1948e7b1b7..18f78adbea 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -29,7 +29,7 @@ dnl Check for headers if check not already done. AC_DEFUN([CURL_CHECK_HEADERS_ONCE], [ for f_hdr in $1 do - u_hdr=`echo "$f_hdr" | sed 's/[\-|\.|\/]/_/g'` + u_hdr=`echo "$f_hdr" | sed 's/[-|\.|\/]/_/g'` eval prev_check_res=\$ac_cv_header_$u_hdr case "$prev_check_res" in yes | no) diff --git a/ares/acinclude.m4 b/ares/acinclude.m4 index 02930ad25f..e81f6a4b89 100644 --- a/ares/acinclude.m4 +++ b/ares/acinclude.m4 @@ -7,7 +7,7 @@ dnl Check for headers if check not already done. AC_DEFUN([CURL_CHECK_HEADERS_ONCE], [ for f_hdr in $1 do - u_hdr=`echo "$f_hdr" | sed 's/[\-|\.|\/]/_/g'` + u_hdr=`echo "$f_hdr" | sed 's/[-|\.|\/]/_/g'` eval prev_check_res=\$ac_cv_header_$u_hdr case "$prev_check_res" in yes | no)