Skip to content

Commit

Permalink
Merge pull request #130 from jigpu/fix-129
Browse files Browse the repository at this point in the history
Error out if the build path has a space in it

Reviewed-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
  • Loading branch information
jigpu committed Oct 18, 2019
2 parents 094b80a + 06bddec commit b17704d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd $srcdir
cd "$srcdir"

autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?
cd "$ORIGDIR" || exit $?

$srcdir/configure --enable-maintainer-mode "$@"
"$srcdir/configure" --enable-maintainer-mode "$@"
11 changes: 11 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ AM_MAINTAINER_MODE

AC_PROG_CC

dnl =======================================================
dnl Check if we have a sane build path
SANITY=`readlink -e "$srcdir"`
AC_MSG_CHECKING(if build path '$SANITY' has spaces)
if `echo "$SANITY" | grep -q ' '`; then
AC_MSG_RESULT([yes])
AC_MSG_ERROR([Cannot build from a path with a space in it!])
fi
AC_MSG_RESULT([no])


dnl =======================================================
dnl Check if we should be compiling for linux
AC_MSG_CHECKING(for kernel type)
Expand Down

0 comments on commit b17704d

Please sign in to comment.