Substitution of the literal '-' is only done if it's the first or last character.

pull/1/head
Yang Tse 19 years ago
parent e7be013388
commit f3643c497b
  1. 2
      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)

Loading…
Cancel
Save