X-Git-Url: http://git.indexdata.com/?p=simpleserver-moved-to-github.git;a=blobdiff_plain;f=Makefile.PL;h=d3bc617ebce8768acb13c7dd8ef102cd235ab9f2;hp=528490cda103968b62eea70c451a2158c4a8cdd7;hb=731fbde510b146e9367779d66bb0954ba92b03fd;hpb=6c62678bc9633a58d3da916ff7d3673cb062b33a diff --git a/Makefile.PL b/Makefile.PL index 528490c..d3bc617 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,17 +1,27 @@ use ExtUtils::MakeMaker; -## $Id: Makefile.PL,v 1.6 2004-06-07 17:08:00 adam Exp $ +## $Id: Makefile.PL,v 1.8 2005-03-13 20:01:38 adam Exp $ -my $libs = `yaz-config --libs threads` || die "ERROR: Unable to call script: yaz-config"; +my $yazconf = "yaz-config"; +my $yazinc = `$yazconf --cflags threads`; +my $yazlibs = `$yazconf --libs threads`; +if (!$yazinc && !$yazlibs) { + die qq[ +ERROR: Unable to call script: yaz-config +If you're using a YAZ installation from the Debian package "yaz", you +will also need to install "libyaz-dev" in order to build the +SimpleServer module. +]; +} # For Windows use -# 'LIBS' => 'c:\yaz\lib\yaz.lib' -# 'INC' => 'c:\yaz\include' +# $yazinc = '-Ic:\yaz\include' +# $yazlibs = 'c:\yaz\lib\yaz.lib' WriteMakefile( 'NAME' => 'Net::Z3950::SimpleServer', 'VERSION_FROM' => 'SimpleServer.pm', # finds $VERSION - 'LIBS' => [$libs], # e.g., '-lm' + 'LIBS' => [$yazlibs], # e.g., '-lm' 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' - 'INC' => '', # e.g., '-I/usr/include/other' + 'INC' => $yazinc, # e.g., '-I/usr/include/other' );