summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2016-12-13 10:52:46 +0100
committerMartin Babinsky <mbabinsk@redhat.com>2016-12-14 10:09:26 +0100
commit19aba7c555edf065b9f2fa95142da81b92396264 (patch)
treed2ab30dacc2b504b9d24dd98913fdd800d2d5472
parent74b8cf2c4a8dd36577d76c35a9ef08352ef025b7 (diff)
downloadfreeipa-19aba7c555edf065b9f2fa95142da81b92396264.tar.gz
freeipa-19aba7c555edf065b9f2fa95142da81b92396264.tar.xz
freeipa-19aba7c555edf065b9f2fa95142da81b92396264.zip
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>
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cf4392bfe..3ea598355 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])