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

From: Glenn Morris <[email-masked]>
Date: Thu, 31 Oct 2013 13:27:24 -0400

This will become irrelevant if http://debbugs.gnu.org/15260 gets fixed,
but in the meantime, please give details of:

exactly what version of OpenBSD this is
what shell /bin/sh is
and send the config.log as attachment

Han Boetes wrote:

> -    *[[^\ -~]]*) AC_MSG_ERROR([Emacs cannot be built or installed in a directory whose name contains non-ASCII characters: $var]) ;;
> +    *[[^\ ~-]]*) AC_MSG_ERROR([Emacs cannot be built or installed in a directory whose name contains non-ASCII characters: $var]) ;;

These are not the same thing.

[^\ -~] is supposed to match any character not in the range " " to "~",
which, under LC_ALL=C, should be the range of ASCII characters, AFAIK. 
Maybe someone knows a better, portable way to test for non-ASCII?
I'd rather not do: [^a-zA-Z0-9...] if at all possible.

Yours, [^\ ~-], should match any character that is not " " , "~", or "-".
I have no idea how this can work for you...

Maybe "^" does not work as negation in your shell?

The autoconf manual does say that [^...] is not portable (apparently we
should use [!...] instead), but [^...] is extensively used elsewhere in
the Emacs build rules, and [!...] not at all.

Does it work for you if you use:

   *[[!\ ~-]]*) AC_MSG_ERROR ...

?