Fix $Config{ccflags} for Win32 perls built with dmake
[p5sagit/p5-mst-13.2.git] / ext / Compress / Zlib / t / 01version.t
CommitLineData
f4c6fd49 1
2use strict ;
8aa25532 3use warnings ;
f4c6fd49 4
5use Compress::Zlib ;
6
7sub ok
8{
9 my ($no, $ok) = @_ ;
10
11 #++ $total ;
12 #++ $totalBad unless $ok ;
13
14 print "ok $no\n" if $ok ;
15 print "not ok $no\n" unless $ok ;
16 return $ok;
17}
18
19print "1..1\n" ;
20
21# Check zlib_version and ZLIB_VERSION are the same.
22my $zlib_h = ZLIB_VERSION ;
23my $libz = Compress::Zlib::zlib_version;
24ok(1, $zlib_h eq $libz) ||
25print <<EOM;
26# The version of zlib.h does not match the version of libz
27#
28# You have zlib.h version $zlib_h
29# and libz version $libz
30#
31# You probably have two versions of zlib installed on your system.
32# Try removing the one you don't want to use and rebuild.
33EOM
34