[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15769: building on OpenBSD fails because of a shell pattern problem
From: |
Glenn Morris |
Subject: |
bug#15769: building on OpenBSD fails because of a shell pattern problem |
Date: |
Thu, 31 Oct 2013 14:06:48 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Or maybe sed will work better than the shell?
*** configure.ac 2013-10-27 18:57:20 +0000
--- configure.ac 2013-10-31 18:02:36 +0000
***************
*** 91,99 ****
"$datarootdir" "$bindir" "$datadir" "$sharedstatedir" "$libexecdir"; do
dnl configure sets LC_ALL=C early on, so this range should work.
! case "$var" in
! *[[^\ -~]]*) AC_MSG_ERROR([Emacs cannot be built or installed in a
directory whose name contains non-ASCII characters: $var]) ;;
! esac
done
--- 91,100 ----
"$datarootdir" "$bindir" "$datadir" "$sharedstatedir" "$libexecdir"; do
dnl configure sets LC_ALL=C early on, so this range should work.
! dnl This seems more portable than using a case statement with *[[^\ -~]]*)
! var=`echo "$var" | sed 's/[[ -~]]//g'`
!
! test -n "$var" && AC_MSG_ERROR([Emacs cannot be built or installed in a
directory whose name contains non-ASCII characters: $var])
done