1use ExtUtils::MakeMaker;
2use 5.008;
3# See lib/ExtUtils/MakeMaker.pm for details of how to influence
4# the contents of the Makefile that is written.
5my $dot_version = `dot -V 2>&1`;
6
7if (!$dot_version) {
8  die "You must install the graphviz package (http://www.graphviz.org) before using this module.\n";
9}
10else {
11  my ($v) = ($dot_version =~ /dot (?:- Graphviz )?version (\d+\.\d+)/i );
12  $v += 0.0;
13  if ( $v < 2.2 ) {
14    die "You must have at least version 2.2 of dot to use this module (found $v)";
15  }
16}
17
18WriteMakefile(
19    NAME         => 'GraphViz::Data::Structure',
20    VERSION_FROM => 'lib/GraphViz/Data/Structure.pm', # finds $VERSION
21    AUTHOR       => 'Joe McMahon (mcmahon@ibiblio.org)',
22    ABSTRACT     => 'Visualize Perl data structures',
23    PREREQ_PM    => {GraphViz=>2.02,Devel::Peek=>0,Test::More=>0}
24);
25