support using user-defined protoc via env var PROTOC

This commit is contained in:
Edmond 2017-05-16 10:35:51 +08:00
Родитель 74e55a18a7
Коммит 5d2a1ad8d3
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -25,7 +25,9 @@ LIBS="$LIBS $PROTOBUF_LIBS"
m4_include([third_party/m4/ax_check_icu.m4]) m4_include([third_party/m4/ax_check_icu.m4])
AC_CHECK_PROG([PROTOC], [protoc], [protoc]) if test ! -n "$PROTOC"; then
AC_CHECK_PROG([PROTOC], [protoc], [protoc])
fi
AS_IF([test "x${PROTOC}" == "x"], AS_IF([test "x${PROTOC}" == "x"],
[AC_MSG_ERROR([ProtoBuf compiler "protoc" not found. You can install them with "sudo apt-get install libprotobuf-c++ protobuf-compiler" ])]) [AC_MSG_ERROR([ProtoBuf compiler "protoc" not found. You can install them with "sudo apt-get install libprotobuf-c++ protobuf-compiler" ])])