diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-08 16:58:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-08 16:59:47 +0100 |
commit | aefc43ba5c2688a1301dcda08b56a42127904cbb (patch) | |
tree | edca9dccef5265fc0ab1f7ad3a6442f2466bbc95 /autogen.sh | |
parent | 5f6fcb4e7c8c273ca4a0211bf1b6f99a20ef5feb (diff) |
autogen.sh: better error message when src_path contains spaces
Change-Id: I921ffaf2ee4be73ecfffca8bc36cfae484b70a32
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh index cdf4e768f939..ab9c94d3f165 100755 --- a/autogen.sh +++ b/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'; |