From: fanquake Date: Tue, 13 Jul 2021 07:08:44 +0000 (+0800) Subject: build: fail with a useful error message if pkg-config isn't available X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5642697e7e51a5984fd7574f4e3723f42ee9ed5;p=libevent build: fail with a useful error message if pkg-config isn't available --- diff --git a/m4/libevent_openssl.m4 b/m4/libevent_openssl.m4 index 178cf387..1adc583f 100644 --- a/m4/libevent_openssl.m4 +++ b/m4/libevent_openssl.m4 @@ -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