X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=configure;h=bcfa4167f3a84470986883218bc7630e9f36fc33;hb=18914c725bd373f8cd6a5072df73ffe31653208c;hp=e16a9b761e7257551b39f7f60455e9d2d374afe4;hpb=d56a801b6743971ff7f42404fe159260937405a1;p=notmuch 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 <