Skip to content

Commit cca0569

Browse files
laanwjcodablock
authored andcommitted
Merge bitcoin#8293: Bugfix: Allow building libbitcoinconsensus without any univalue
8a270b2 Bugfix: Allow building libbitcoinconsensus without any univalue (Luke Dashjr)
1 parent 7dafb53 commit cca0569

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
@@ -844,6 +844,12 @@ fi
844844

845845
dnl univalue check
846846

847+
need_bundled_univalue=yes
848+
849+
if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnonononono; then
850+
need_bundled_univalue=no
851+
else
852+
847853
if test x$system_univalue != xno ; then
848854
found_univalue=no
849855
if test x$use_pkgconfig = xyes; then
@@ -865,18 +871,22 @@ if test x$system_univalue != xno ; then
865871

866872
if test x$found_univalue = xyes ; then
867873
system_univalue=yes
874+
need_bundled_univalue=no
868875
elif test x$system_univalue = xyes ; then
869876
AC_MSG_ERROR([univalue not found])
870877
else
871878
system_univalue=no
872879
fi
873880
fi
874881

875-
if test x$system_univalue = xno ; then
882+
if test x$need_bundled_univalue = xyes ; then
876883
UNIVALUE_CFLAGS='-I$(srcdir)/univalue/include'
877884
UNIVALUE_LIBS='univalue/libunivalue.la'
878885
fi
879-
AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$system_univalue = xno])
886+
887+
fi
888+
889+
AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes])
880890
AC_SUBST(UNIVALUE_CFLAGS)
881891
AC_SUBST(UNIVALUE_LIBS)
882892

@@ -1115,7 +1125,7 @@ PKGCONFIG_LIBDIR_TEMP="$PKG_CONFIG_LIBDIR"
11151125
unset PKG_CONFIG_LIBDIR
11161126
PKG_CONFIG_LIBDIR="$PKGCONFIG_LIBDIR_TEMP"
11171127

1118-
if test x$system_univalue = xno; then
1128+
if test x$need_bundled_univalue = xyes; then
11191129
AC_CONFIG_SUBDIRS([src/univalue])
11201130
fi
11211131

0 commit comments

Comments
 (0)