message: Adjust configure so that only bip70 is disabled when protobuf is missing instead of the GUI
diff: @@ -213,7 +213,7 @@ AC_ARG_ENABLE([bip70],
  [AS_HELP_STRING([--disable-bip70],
  [disable BIP70 (payment protocol) support in GUI (enabled by default)])],
  [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], [])
  @@ -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([CRYPTO], [libcrypto],,[AC_MSG_ERROR(libcrypto not found.)])
  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
  if test x$use_qr != xno; then
  BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])])
  @@ -1150,7 +1150,7 @@ else
  fi
  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
  if test x$use_qr != xno; then
  BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
  @@ -1229,7 +1229,9 @@ AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes])
  AC_SUBST(UNIVALUE_CFLAGS)
  AC_SUBST(UNIVALUE_LIBS)
  -if test x$enable_bip70 != xno; then
  +
  +if test x$have_protobuf != xno &&
  + test x$enable_bip70 != xno; then
  BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path)
  fi
  @@ -1351,6 +1353,13 @@ if test x$bitcoin_enable_qt != xno; then
  fi
  AC_MSG_CHECKING([whether to build BIP70 support])
  + if test x$have_protobuf = xno; then
  + if test x$enable_bip70 = xyes; then
  + AC_MSG_ERROR(protobuf missing)
  + fi
  + enable_bip70=no
  + AC_MSG_RESULT(no)
  + else
  if test x$enable_bip70 != xno; then
  AC_DEFINE([ENABLE_BIP70],[1],[Define if BIP70 support should be compiled in])
  enable_bip70=yes
  @@ -1359,6 +1368,7 @@ if test x$bitcoin_enable_qt != xno; then
  AC_MSG_RESULT([no])
  fi
  fi
  +fi
  AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"])
  