Subject: bug#15769: building on OpenBSD fails because of a shell pattern problem

From: Glenn Morris <[email-masked]>
Date: Thu, 31 Oct 2013 14:06:48 -0400

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