Makefile: check for existence of pkg-config
authorRobert Swiecki <robert@swiecki.net>
Tue, 13 Feb 2018 16:12:55 +0000 (17:12 +0100)
committerRobert Swiecki <robert@swiecki.net>
Tue, 13 Feb 2018 16:12:55 +0000 (17:12 +0100)
Makefile

index 9b88fc9..ade7784 100644 (file)
--- a/Makefile
+++ b/Makefile
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
+PKG_CONFIG=$(shell which pkg-config)
+ifeq ($(PKG_CONFIG),)
+$(error "Install pkg-config to make it work")
+endif
+
 CC ?= gcc
 CXX ?= g++