* NEWS: Don't worry about spaces in bindir etc. Only srcdir and working

directory have inherent problems with special characters like spaces,
due to limitations in Make syntax.  Problem reported by Alexandre
Duret-Lutz.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
Also, fix Tru64 porting problem with shell patterns,
reported by Ralf Wildenhues.
This commit is contained in:
Paul Eggert 2005-06-24 02:13:39 +00:00
parent 8bf5f56cf9
commit e32eb1d0fe
3 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,13 @@
2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
* NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
directory have inherent problems with special characters like spaces,
due to limitations in Make syntax. Problem reported by Alexandre
Duret-Lutz.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
Also, fix Tru64 porting problem with shell patterns,
reported by Ralf Wildenhues.
2005-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/autoconf.texi (Subdirectories): Fix markup typos.

4
NEWS
View File

@ -1,7 +1,7 @@
* Major changes in Autoconf 2.59c
** The configure command now warns you if you attempt to use a directory
whose name contains a special character like space, newline, or "\".
** The configure command now diagnoses attempts to use a working or source
directory whose name contains a special character like space, newline, or "\".
Such names are not supported, and can cause "configure" to crash.
** The configure command now redirects standard input from /dev/null,

View File

@ -467,12 +467,9 @@ ac_pwd=`pwd` && test -n "$ac_pwd" ||
AC_MSG_ERROR([Working directory cannot be determined])
ac_pat="[[\$][{][_$as_cr_Letters][_$as_cr_alnum]*[}]]"
ac_pat1='*[)]*'
for ac_var in ac_pwd srcdir \
bindir sbindir libexecdir datarootdir datadir \
sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir \
psdir libdir localedir mandir
for ac_var in ac_pwd srcdir
do
# Remove references to shell or make variables.
eval ac_dir=\$$ac_var
@ -492,7 +489,7 @@ do
# Preserve that tab character below!
case $ac_dirx in
'' | -* | */-* | *'
'* | *' '* | *' '* | *\"* | *\#* | *\$* | *\&* | *\'* | *\(* | *\)* | \
'* | *' '* | *' '* | *\"* | *\#* | *\$* | *\&* | *\'* | *\(* | $ac_pat1 | \
*\** | *\;* | *\<* | *\=* | *\>* | *\?* | *\@<:@* | *\\* | *\`* | \
*\|* | \~*)
AC_MSG_ERROR([$ac_var directory name `$ac_dir' has special characters]);;