Commit e8ad9b0a authored by Philip Carns's avatar Philip Carns

experimental detection of gnuplot version


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@504 3b7491f3-a168-0410-bf4b-c445ed680a29
parent c4597bb6
...@@ -1347,6 +1347,7 @@ sub process_args ...@@ -1347,6 +1347,7 @@ sub process_args
sub check_prereqs sub check_prereqs
{ {
my $rc; my $rc;
my $output;
my @bins = ($darshan_parser, $pdflatex, $epstopdf, my @bins = ($darshan_parser, $pdflatex, $epstopdf,
$gnuplot, $cp, $mv); $gnuplot, $cp, $mv);
foreach my $bin (@bins) foreach my $bin (@bins)
...@@ -1359,6 +1360,21 @@ sub check_prereqs ...@@ -1359,6 +1360,21 @@ sub check_prereqs
} }
} }
# check gnuplot version
$output = `$gnuplot --version`;
if($? != 0)
{
print("error: failed to execute $gnuplot.\n");
exit(1);
}
$output =~ /gnuplot (\d+)\.(\d+)/;
if($1 < 4 || $2 < 2)
{
print("error: detected $gnuplot version $1.$2, but darshan-job-summary requires at least 4.2.\n");
exit(1);
}
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment