File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 834834
835835dnl 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+
837843if 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
863870fi
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'
868875fi
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] )
870880AC_SUBST ( UNIVALUE_CFLAGS )
871881AC_SUBST ( UNIVALUE_LIBS )
872882
@@ -1105,7 +1115,7 @@ PKGCONFIG_LIBDIR_TEMP="$PKG_CONFIG_LIBDIR"
11051115unset PKG_CONFIG_LIBDIR
11061116PKG_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] )
11101120fi
11111121
You can’t perform that action at this time.
0 commit comments