2 |
# See lib/ExtUtils/MakeMaker.pm for details of how to influence |
# See lib/ExtUtils/MakeMaker.pm for details of how to influence |
3 |
# the contents of the Makefile that is written. |
# the contents of the Makefile that is written. |
4 |
|
|
5 |
my $inc = `pkg-config --cflags` || '-I ../include -D_FILE_OFFSET_BITS=64'; |
my $ver = `fusermount -V`; |
6 |
|
$ver =~ s/^.*?version:\s+//; |
7 |
|
if ($ver + 0 < 2.5) { |
8 |
|
die "Fuse perl bindings need fuse version 2.5 or never\n"; |
9 |
|
} else { |
10 |
|
warn "fuse version found: $ver\n"; |
11 |
|
} |
12 |
|
|
13 |
|
my $inc = '-DFUSE_USE_VERSION=25 ' . `pkg-config --cflags fuse` || '-I ../include -D_FILE_OFFSET_BITS=64'; |
14 |
my $obj = `pkg-config --libs fuse` || '-lfuse'; |
my $obj = `pkg-config --libs fuse` || '-lfuse'; |
15 |
|
|
16 |
WriteMakefile( |
WriteMakefile( |
17 |
'NAME' => 'Fuse', |
'NAME' => 'Fuse', |
18 |
'VERSION_FROM' => 'Fuse.pm', # finds $VERSION |
'VERSION_FROM' => 'Fuse.pm', # finds $VERSION |