From: Tomi Ollila Date: Sun, 12 Mar 2017 11:59:12 +0000 (+0200) Subject: configure: add ${NOTMUCH_SRCDIR} -- absolute path to notmuch source X-Git-Tag: 0.25_rc0~111 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=18914c725bd373f8cd6a5072df73ffe31653208c configure: add ${NOTMUCH_SRCDIR} -- absolute path to notmuch source The ${srcdir} -- usually relative path to notmuch source -- works fine in current ./configure and all makefiles. To have simple access to notmuch source in tests and out of tree builds holding absolute path to the source directory is useful. --- diff --git a/configure b/configure index e16a9b76..bcfa4167 100755 --- a/configure +++ b/configure @@ -19,7 +19,12 @@ To work around this problem you may try to execute: # Store original IFS value so it can be changed (and restored) in many places. readonly DEFAULT_IFS="$IFS" +# The top-level directory for the source. This ./configure and all Makefiles +# are good with ${srcdir} usually being relative. Some components (e.g. tests) +# are executed in subdirectories and for those it is simpler to use +# ${NOTMUCH_SRCDIR} which holds absolute path to the source. srcdir=$(dirname "$0") +NOTMUCH_SRCDIR=$(cd "$srcdir" && pwd) subdirs="util compat lib parse-time-string completion doc emacs" subdirs="${subdirs} performance-test test test/test-databases" @@ -913,6 +918,7 @@ cat > Makefile.config < sh.config <