autogen.sh: better error message when src_path contains spaces
Change-Id: I921ffaf2ee4be73ecfffca8bc36cfae484b70a32
This commit is contained in:
parent
5f6fcb4e7c
commit
aefc43ba5c
2 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,7 @@ $(BUILDDIR)/config_host.mk : $(wildcard \
|
|||
$(SRCDIR)/android/experimental/LOAndroid3/AndroidManifest.xml.in \
|
||||
$(BUILDDIR)/autogen.input \
|
||||
$(BUILDDIR)/autogen.lastrun \
|
||||
$(BUILDDIR)/autogen.sh \
|
||||
)
|
||||
sh -c $(SRCDIR)/autogen.sh
|
||||
|
||||
|
|
|
@ -116,6 +116,9 @@ sub invalid_distro($$)
|
|||
closedir ($dirh);
|
||||
}
|
||||
|
||||
# Avoid confusing "aclocal: error: non-option arguments are not accepted: '.../m4'." error message.
|
||||
die "\$src_path must not contain spaces, but it is '$src_path'." if ($src_path =~ / /);
|
||||
|
||||
# Alloc $ACLOCAL to specify which aclocal to use
|
||||
$aclocal = $ENV{ACLOCAL} ? $ENV{ACLOCAL} : 'aclocal';
|
||||
|
||||
|
|
Loading…
Reference in a new issue