]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Using backslashes and slashes in the strings of the sed 'y' command shall be avoided...
authorYang Tse <yangsita@gmail.com>
Fri, 7 Jul 2006 12:59:45 +0000 (12:59 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 7 Jul 2006 12:59:45 +0000 (12:59 +0000)
Now we use the sed 's' command with a bracket expression.

acinclude.m4
ares/acinclude.m4

index 5ef157cca549f930fabf2f242b085edb1c58d144..1948e7b1b734a3487ba732a5db67ee398a43d36f 100644 (file)
@@ -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 'y/.\/-/___/'`
+    u_hdr=`echo "$f_hdr" | sed 's/[\-|\.|\/]/_/g'`
     eval prev_check_res=\$ac_cv_header_$u_hdr
     case "$prev_check_res" in
       yes | no)
index 97fc10b72207a0a355f2550af7104bfcf71ffc56..02930ad25fcf304fffe94fc6c4e3c008ef831ddd 100644 (file)
@@ -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 'y/.\/-/___/'`
+    u_hdr=`echo "$f_hdr" | sed 's/[\-|\.|\/]/_/g'`
     eval prev_check_res=\$ac_cv_header_$u_hdr
     case "$prev_check_res" in
       yes | no)