X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=perl%2FMakefile.PL.in;h=8d4eae166cc0b86d9cf110b00975b09d4d0d839b;hb=4cea1b9769079a2cdc143f4fe483e69d5b77a813;hp=e5c120784e22ef54779e679589c2ae79883c6089;hpb=92358ecf48eee1915a597b38addd532db490cbdb;p=idzebra-moved-to-github.git diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in index e5c1207..8d4eae1 100644 --- a/perl/Makefile.PL.in +++ b/perl/Makefile.PL.in @@ -1,10 +1,12 @@ use ExtUtils::MakeMaker; +my $libs = `../idzebra-config --libs`; +my $flags = `../idzebra-config --cflags`; WriteMakefile( 'NAME' => 'IDZebra', 'OBJECT' => 'IDZebra_wrap.o zebra_perl.o' , - 'INC' => "-I@top_srcdir@/index -I../include @YAZINC@", - 'LIBS' => "-L@top_srcdir@/index -lzebra @TCL_LIB@ @YAZLIB@ @ZPERL_LIBS@", + 'INC' => $flags, + 'LIBS' => [$libs], 'OPTIMIZE' => '-g', # 'PREREQ_FATAL' => 1, 'PREREQ_PM' => { @@ -16,8 +18,7 @@ WriteMakefile( sub MY::postamble { 'IDZebra_wrap.c: IDZebra.i - swig -I../include -v -Wall -perl -proxy ./IDZebra.i - mv IDZebra.pm lib/' + ./doswig' ; }