Skip to content

Commit efce84d

Browse files
committed
Merge #8293: Bugfix: Allow building libbitcoinconsensus without any univalue
8a270b2 Bugfix: Allow building libbitcoinconsensus without any univalue (Luke Dashjr)
2 parents fe1780e + 8a270b2 commit efce84d

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

configure.ac

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,12 @@ fi
834834

835835
dnl univalue check
836836

837+
need_bundled_univalue=yes
838+
839+
if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnonononono; then
840+
need_bundled_univalue=no
841+
else
842+
837843
if test x$system_univalue != xno ; then
838844
found_univalue=no
839845
if test x$use_pkgconfig = xyes; then
@@ -855,18 +861,22 @@ if test x$system_univalue != xno ; then
855861

856862
if test x$found_univalue = xyes ; then
857863
system_univalue=yes
864+
need_bundled_univalue=no
858865
elif test x$system_univalue = xyes ; then
859866
AC_MSG_ERROR([univalue not found])
860867
else
861868
system_univalue=no
862869
fi
863870
fi
864871

865-
if test x$system_univalue = xno ; then
872+
if test x$need_bundled_univalue = xyes ; then
866873
UNIVALUE_CFLAGS='-I$(srcdir)/univalue/include'
867874
UNIVALUE_LIBS='univalue/libunivalue.la'
868875
fi
869-
AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$system_univalue = xno])
876+
877+
fi
878+
879+
AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes])
870880
AC_SUBST(UNIVALUE_CFLAGS)
871881
AC_SUBST(UNIVALUE_LIBS)
872882

@@ -1105,7 +1115,7 @@ PKGCONFIG_LIBDIR_TEMP="$PKG_CONFIG_LIBDIR"
11051115
unset PKG_CONFIG_LIBDIR
11061116
PKG_CONFIG_LIBDIR="$PKGCONFIG_LIBDIR_TEMP"
11071117

1108-
if test x$system_univalue = xno; then
1118+
if test x$need_bundled_univalue = xyes; then
11091119
AC_CONFIG_SUBDIRS([src/univalue])
11101120
fi
11111121

0 commit comments

Comments
 (0)