From 8c12669490878d47452c271b0ff6ab6858060ab4 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 11 Apr 2016 16:15:32 +0300 Subject: [PATCH] Use Devel::CheckLib --- Makefile.PL | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 3abc42e..ef281e8 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,6 +1,10 @@ use 5.014000; +use Devel::CheckLib; use ExtUtils::MakeMaker; +check_lib_or_exit + lib => 'openalprpy'; + WriteMakefile( NAME => 'Image::OpenALPR', VERSION_FROM => 'lib/Image/OpenALPR.pm', @@ -9,13 +13,17 @@ WriteMakefile( MIN_PERL_VERSION => '5.14.0', LICENSE => 'open_source', SIGN => 1, + CONFIGURE_REQUIRES => { + qw/Devel::CheckLib 0 + ExtUtils::MakeMaker 0/, + }, PREREQ_PM => { qw/Class::Accessor::Fast 0 JSON::MaybeXS 0/, }, LIBS => ['-lopenalprpy'], META_ADD => { - dynamic_config => 0, + dynamic_config => 1, resources => { repository => 'https://git.ieval.ro/?p=image-openalpr.git', }, -- 2.39.2