From ad1253f3c3e7d59ce0a87dab1a031243a81c3bba Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 27 Sep 2014 23:58:43 +0200 Subject: [PATCH] Bail out if geoip and yaml libs are not installed --- m4/pdns_with_geo.m4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/m4/pdns_with_geo.m4 b/m4/pdns_with_geo.m4 index d0bcb6343..b239356a3 100644 --- a/m4/pdns_with_geo.m4 +++ b/m4/pdns_with_geo.m4 @@ -1,4 +1,8 @@ AC_DEFUN([PDNS_CHECK_GEOIP], [ - PKG_CHECK_MODULES([GEOIP], [geoip]) - PKG_CHECK_MODULES([YAML], [yaml-cpp >= 0.5]) + PKG_CHECK_MODULES([GEOIP], [geoip],[], + AC_MSG_ERROR([Could not find libGeoIP]) + ) + PKG_CHECK_MODULES([YAML], [yaml-cpp >= 0.5],[], + AC_MSG_ERROR([Could not find yaml-cpp]) + ) ]) -- 2.40.0