diff options
author | Adrian Thurston <thurston@colm.net> | 2021-12-06 22:14:00 -0800 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2021-12-11 11:18:08 -0800 |
commit | 4e5cb4f242c001e0937bf90f0e7c96fa64e2befe (patch) | |
tree | 9a40e0b82d77a305bfa165f88907105870e357fd /configure.ac | |
parent | 04aa160534d62c33b631ef02fe9e202e4e2be045 (diff) | |
download | colm-4e5cb4f242c001e0937bf90f0e7c96fa64e2befe.tar.gz |
if buildDir is not set with -B, try to find a default
When running from the build directory, if one forgets to give -B, and colm was
previously installed at the current prefix, colm programs will build against
the installed version, not the local source tree. This won't be immediately
obvious and could lead to confusion during development.
To prevent this, try to find the buildDir if one is not given. The tests can
continue to specify the buildDir with -B, which is the most safe way.
The buildDir is defaulted by testing the buildDir known at compile time against
LD_LIBRARY_PATH. Libtool on ubuntu 20.04 will place the buildDir at the head of
LD_LIBRARY_PATH. It seems likely that it would do this on all systems, making
it a seemingly good test.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 532d636d..9124b8a9 100644 --- a/configure.ac +++ b/configure.ac @@ -375,7 +375,7 @@ AC_ARG_WITH(crack, SED_SUBST="$SED_SUBST -e 's|@CRACK_BIN@|${CRACK_BIN}|g'" AC_SUBST(CRACK_BIN) - + dnl Skip bootstrap process and build using an existing version of colm. Allows us to dnl break colm without breaking the build of colm. dnl |