2013-10-23 Glenn Morris <rgm@gnu.org>
+ * configure.ac: Explicit error for non-ASCII directories. (Bug#15260)
+
Progress towards allowing installation in directories with whitespace.
* Makefile.in (COPYDESTS, write_subdir, install-arch-dep)
(install-arch-indep, install-etcdoc, install-info, install-man)
dnl --program-transform-name options
AC_ARG_PROGRAM
+dnl http://debbugs.gnu.org/15260
+for var in "`pwd`" "`cd \"$srcdir\"; pwd`" "$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
+
dnl It is important that variables on the RHS not be expanded here,
dnl hence the single quotes. This is per the GNU coding standards, see
dnl (autoconf) Installation Directory Variables