Date of release 1.00
[simpleserver-moved-to-github.git] / Makefile.PL
1 use ExtUtils::MakeMaker;
2
3 ## $Id: Makefile.PL,v 1.8 2005-03-13 20:01:38 adam Exp $
4
5 my $yazconf = "yaz-config";
6 my $yazinc = `$yazconf --cflags threads`;
7 my $yazlibs = `$yazconf --libs threads`;
8 if (!$yazinc && !$yazlibs) {
9    die qq[
10 ERROR: Unable to call script: yaz-config
11 If you're using a YAZ installation from the Debian package "yaz", you
12 will also need to install "libyaz-dev" in order to build the
13 SimpleServer module.
14 ];
15 }
16
17 # For Windows use
18 # $yazinc = '-Ic:\yaz\include'
19 # $yazlibs = 'c:\yaz\lib\yaz.lib'
20
21 WriteMakefile(
22     'NAME'      => 'Net::Z3950::SimpleServer',
23     'VERSION_FROM' => 'SimpleServer.pm', # finds $VERSION
24     'LIBS'      => [$yazlibs],   # e.g., '-lm' 
25     'DEFINE'    => '',     # e.g., '-DHAVE_SOMETHING' 
26     'INC'       => $yazinc,     # e.g., '-I/usr/include/other' 
27 );