Description: hardcode FFTW3 build config because is known values Author: Ed J Forwarded: not-needed --- a/Makefile.PL +++ b/Makefile.PL @@ -11,36 +11,8 @@ use PDL::Core::Dev; my $cflags; my $libs; -if( eval "require Alien::FFTW3" ) { - ## Ensure at least version 3.3; die if we can't get it. - Alien::FFTW3->VERSION(3.3); - my $p = Alien::FFTW3->precision; - unless($p->{'d'} and $p->{'f'}) { - die "PDL::FFTW3 - needs both double-precision and single-precision fftw3 libraries\n\t(libfftw3 and libfftw3f). Alien::FFTW3 found only ".(join(",",keys %$p))."\n"; - } - $cflags = Alien::FFTW3->cflags; - $libs = Alien::FFTW3->libs; -} else { - print "Alien::FFTW3 not found. Using pkg-config instead...\n"; - - require IPC::Run; $cflags = ''; - $libs = ''; - my $err = ''; - IPC::Run::run( ['pkg-config', - '--cflags', - 'fftw3f >= 3.3', 'fftw3 >= 3.3'], - \undef, - \$cflags, \$err ) or die "Couldn't get the fftw flags: '$err'"; - - IPC::Run::run( ['pkg-config', - '--libs', - 'fftw3f >= 3.3', 'fftw3 >= 3.3'], - \undef, - \$libs, \$err ) or die "Couldn't get the fftw libs: '$err'"; - - chomp($cflags, $libs); -} + $libs = '-lfftw3f -lfftw3'; my @package = (qw(fftw3.pd FFTW3 PDL::FFTW3), undef, 1); my %descriptor = pdlpp_stdargs(\@package);