Now we use the sed 's' command with a bracket expression.
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)
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)