|
|
@ -213,7 +213,7 @@ AC_ARG_ENABLE([bip70],
|
|
|
|
[AS_HELP_STRING([--disable-bip70],
|
|
|
|
[AS_HELP_STRING([--disable-bip70],
|
|
|
|
[disable BIP70 (payment protocol) support in GUI (enabled by default)])],
|
|
|
|
[disable BIP70 (payment protocol) support in GUI (enabled by default)])],
|
|
|
|
[enable_bip70=$enableval],
|
|
|
|
[enable_bip70=$enableval],
|
|
|
|
[enable_bip70=yes])
|
|
|
|
[enable_bip70=auto])
|
|
|
|
|
|
|
|
|
|
|
|
AC_ARG_WITH([protoc-bindir],[AS_HELP_STRING([--with-protoc-bindir=BIN_DIR],[specify protoc bin path])], [protoc_bin_path=$withval], [])
|
|
|
|
AC_ARG_WITH([protoc-bindir],[AS_HELP_STRING([--with-protoc-bindir=BIN_DIR],[specify protoc bin path])], [protoc_bin_path=$withval], [])
|
|
|
|
|
|
|
|
|
|
|
@ -1088,7 +1088,7 @@ if test x$use_pkgconfig = xyes; then
|
|
|
|
PKG_CHECK_MODULES([SSL], [libssl],, [AC_MSG_ERROR(openssl not found.)])
|
|
|
|
PKG_CHECK_MODULES([SSL], [libssl],, [AC_MSG_ERROR(openssl not found.)])
|
|
|
|
PKG_CHECK_MODULES([CRYPTO], [libcrypto],,[AC_MSG_ERROR(libcrypto not found.)])
|
|
|
|
PKG_CHECK_MODULES([CRYPTO], [libcrypto],,[AC_MSG_ERROR(libcrypto not found.)])
|
|
|
|
if test x$enable_bip70 != xno; then
|
|
|
|
if test x$enable_bip70 != xno; then
|
|
|
|
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([PROTOBUF], [protobuf], [have_protobuf=yes], [BITCOIN_QT_FAIL(libprotobuf not found)])])
|
|
|
|
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([PROTOBUF], [protobuf], [have_protobuf=yes], [have_protobuf=no])])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x$use_qr != xno; then
|
|
|
|
if test x$use_qr != xno; then
|
|
|
|
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])])
|
|
|
|
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])])
|
|
|
@ -1150,7 +1150,7 @@ else
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if test x$enable_bip70 != xno; then
|
|
|
|
if test x$enable_bip70 != xno; then
|
|
|
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], BITCOIN_QT_FAIL(libprotobuf not found)))
|
|
|
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], [have_protobuf=no]))
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x$use_qr != xno; then
|
|
|
|
if test x$use_qr != xno; then
|
|
|
|
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
|
|
|
|
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
|
|
|
@ -1229,8 +1229,10 @@ AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes])
|
|
|
|
AC_SUBST(UNIVALUE_CFLAGS)
|
|
|
|
AC_SUBST(UNIVALUE_CFLAGS)
|
|
|
|
AC_SUBST(UNIVALUE_LIBS)
|
|
|
|
AC_SUBST(UNIVALUE_LIBS)
|
|
|
|
|
|
|
|
|
|
|
|
if test x$enable_bip70 != xno; then
|
|
|
|
|
|
|
|
BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path)
|
|
|
|
if test x$have_protobuf != xno &&
|
|
|
|
|
|
|
|
test x$enable_bip70 != xno; then
|
|
|
|
|
|
|
|
BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build bitcoind])
|
|
|
|
AC_MSG_CHECKING([whether to build bitcoind])
|
|
|
@ -1351,12 +1353,20 @@ if test x$bitcoin_enable_qt != xno; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build BIP70 support])
|
|
|
|
AC_MSG_CHECKING([whether to build BIP70 support])
|
|
|
|
if test x$enable_bip70 != xno; then
|
|
|
|
if test x$have_protobuf = xno; then
|
|
|
|
AC_DEFINE([ENABLE_BIP70],[1],[Define if BIP70 support should be compiled in])
|
|
|
|
if test x$enable_bip70 = xyes; then
|
|
|
|
enable_bip70=yes
|
|
|
|
AC_MSG_ERROR(protobuf missing)
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
fi
|
|
|
|
|
|
|
|
enable_bip70=no
|
|
|
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
if test x$enable_bip70 != xno; then
|
|
|
|
|
|
|
|
AC_DEFINE([ENABLE_BIP70],[1],[Define if BIP70 support should be compiled in])
|
|
|
|
|
|
|
|
enable_bip70=yes
|
|
|
|
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|