# This Makefile.PL for  was generated by Dist::Zilla.
# Don't edit it but the dist.ini used to construct it.

use strict;
use warnings;
use ExtUtils::MakeMaker 6.30;

my %WriteMakefileArgs = (
  'ABSTRACT' => 'Validate the NAPTR Regexp field per RFC 2915',
  'AUTHOR' => 'Matthew Horsfall (alh) <WolfSage@gmail.com>',
  'BUILD_REQUIRES' => {
    'Test::More' => '0.88'
  },
  'CONFIGURE_REQUIRES' => {
    'ExtUtils::MakeMaker' => '6.30'
  },
  'DISTNAME' => 'Data-Validate-DNS-NAPTR-Regexp',
  'EXE_FILES' => [],
  'LICENSE' => 'perl',
  'NAME' => 'Data::Validate::DNS::NAPTR::Regexp',
  'PREREQ_PM' => {
    'ExtUtils::Constant' => '0.16'
  },
  'VERSION' => '0.003',
  'test' => {
    'TESTS' => 't/*.t'
  }
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
  my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
  my $pp = $WriteMakefileArgs{PREREQ_PM};
  for my $mod ( keys %$br ) {
    if ( exists $pp->{$mod} ) {
      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
    }
    else {
      $pp->{$mod} = $br->{$mod};
    }
  }
}

delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };

WriteMakefile(%WriteMakefileArgs);

my @constants = qw(
	REG_EXTENDED
	REG_ICASE
	REG_NEWLINE
);

eval 'use ExtUtils::Constant';
if( not $@ ) {
    ExtUtils::Constant::WriteConstants(
   NAME    => 'Data::Validate::DNS::NAPTR::Regexp',
   NAMES   => \@constants,
   DEFAULT_TYPE => 'IV',
   C_FILE  => 'const-c.inc',
   XS_FILE => 'const-xs.inc',
    );
}