summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-31 20:30:16 +0000
committerSascha Schumann <sas@php.net>2000-05-31 20:30:16 +0000
commit7bb2af41e36bc3e39f058dc293578a0a260f40c3 (patch)
treef98009671405136913e1676869403be40bc00c32
parent898c8ead8740f57025da769a841a9571803ead76 (diff)
downloadphp-git-7bb2af41e36bc3e39f058dc293578a0a260f40c3.tar.gz
Use sed instead of tr. The tr regexp syntax does not seem to be portable
enough to make wide use of it. This should fix problems on Solaris 8 and possibly on older SysV-derivatives.
-rw-r--r--acinclude.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 38db9632c9..3305d61069 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -407,7 +407,9 @@ dnl
dnl execute code, if variable is not set in namespace
dnl
AC_DEFUN(AC_PHP_ONCE,[
- unique=`echo $ac_n "$2$ac_c" | tr -cd a-zA-Z0-9`
+ changequote({,})
+ unique=`echo $2|sed 's/[^a-zA-Z0-9]/_/g'`
+ changequote([,])
cmd="echo $ac_n \"\$$1$unique$ac_c\""
if test -n "$unique" && test "`eval $cmd`" = "" ; then
eval "$1$unique=set"
@@ -564,7 +566,9 @@ dnl
AC_DEFUN(AC_CHECK_CC_OPTION,[
echo "main(){return 0;}" > conftest.$ac_ext
opt="$1"
- var=`echo $ac_n "$opt$ac_c"|tr -c a-zA-Z0-9 _`
+ changequote({,})
+ var=`echo $opt|sed 's/[^a-zA-Z0-9]/_/g'`
+ changequote([,])
AC_MSG_CHECKING([if compiler supports -$1 really])
ac_php_compile="${CC-cc} -$opt -o conftest $CFLAGS $CPPFLAGS conftest.$ac_ext 2>&1"
if eval $ac_php_compile 2>&1 | egrep "$opt" > /dev/null 2>&1 ; then