From cb968c5c5fc37ac9bfbc8b91227b377d31e683e1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 9 Sep 2004 14:07:06 +0000 Subject: [PATCH] Use idzebra-config for Perl Makefile --- perl/Makefile.PL.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in index f771960..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' => { -- 1.7.10.4