From: oetiker Date: Wed, 21 Nov 2007 06:47:17 +0000 (+0000) Subject: make perlbuild more portable X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c771f2dac741b3f973489af0844fb597280b3563;p=rrdtool-all.git make perlbuild more portable git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1240 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/bindings/perl-shared/Makefile.PL b/program/bindings/perl-shared/Makefile.PL index 863444c7..8793dd8f 100644 --- a/program/bindings/perl-shared/Makefile.PL +++ b/program/bindings/perl-shared/Makefile.PL @@ -31,7 +31,9 @@ WriteMakefile( 'DEFINE' => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}", 'INC' => '-I../../src', # Perl will figure out which one is valid - 'dynamic_lib' => {'OTHERLDFLAGS' => "$librrd -lm"}, + #'dynamic_lib' => {'OTHERLDFLAGS' => "$librrd -lm"}, + 'depend' => {'RRDs.c' => "../../src/librrd.la"}, + 'LDFROM' => '$(OBJECT) '.$librrd, 'realclean' => {FILES => 't/demo?.rrd t/demo?.png' } ); diff --git a/program/configure.ac b/program/configure.ac index 79124364..9d1f5f9a 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -91,6 +91,7 @@ AH_BOTTOM([ #ifdef HAVE_SYS_MMAN_H # include #endif + #if !defined HAVE_MADVISE && defined HAVE_POSIX_MADVISE /* use posix_madvise family */ # define madvise posix_madvise