From 601071c0f21d61a5c4482d8952f7648c3b827b94 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Tue, 19 Dec 2023 15:30:13 -0700 Subject: [PATCH] Use git describe on a known PRRTE commit sha instead of checking for .git directory Supports VPATH builds. Copied from https://github.com/open-mpi/ompi/pull/12173. Thanks to @devreal for the original PR. Signed-off-by: Ralph Castain --- config/prte_configure_options.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/prte_configure_options.m4 b/config/prte_configure_options.m4 index 8880ff85ad..519e9a6d6e 100644 --- a/config/prte_configure_options.m4 +++ b/config/prte_configure_options.m4 @@ -54,7 +54,7 @@ AC_DEFINE_UNQUOTED([PRTE_WANT_PRTE_PREFIX_BY_DEFAULT], # Is this a developer copy? # -if test -d .git; then +if git describe 350564b9f381dfbdbe119f26585f07da6f4b9e8a &> /dev/null ; then PRTE_DEVEL=1 else PRTE_DEVEL=0