build: fail with a useful error message if pkg-config isn't available

This commit is contained in:
fanquake 2021-07-13 15:08:44 +08:00
parent 5c0e75c34e
commit c5642697e7
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -1,6 +1,9 @@
dnl ######################################################################
dnl OpenSSL support
AC_DEFUN([LIBEVENT_OPENSSL], [
m4_ifndef([PKG_PROG_PKG_CONFIG], [AC_MSG_ERROR([PKG_PROG_PKG_CONFIG not found. Please install pkg-config and re-run autogen.sh])])
PKG_PROG_PKG_CONFIG([0.15.0])
case "$host_os" in