Build: forbid builds in working directories containing white spaces

Spaces are causing problems in libtool, makefiles, autoconf itself, gettextize
framework etc. so this issue cannot be easily fixed.

Return on investment is too small to invest into this. Let's detect the
whitespace early and error out with descriptive error message.

https://fedorahosted.org/freeipa/ticket/6537

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Petr Spacek
2016-12-13 10:52:46 +01:00
committed by Martin Babinsky
parent 74b8cf2c4a
commit 19aba7c555

View File

@@ -5,6 +5,14 @@ AC_INIT([freeipa],
IPA_VERSION,
[https://hosted.fedoraproject.org/projects/freeipa/newticket])
dnl Make sure the build directory name does not contain spaces!
dnl Spaces are causing problems in libtool, makefiles, autoconf itself,
dnl gettextize framework etc.
case "$PWD" in
*\ * | *\ *)
AC_MSG_ERROR([whitespace in working directory path is not supported]) ;;
esac
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign 1.9 tar-ustar])