installing scamp on Mac 10.7

scampのインストール手順は以下
http://www.cfht.hawaii.edu/~chyan/wircam/scamp/scamp_installation.html
しかし次の様なエラーが出てscampをインストールできない…

configure: error: FFTW single precision library files not found in /usr/local/fftw/lib! Exiting.

このスレッドを参考にした
http://www.astromatic.net/forum/showthread.php?tid=364
まず自分の場合は、fftwをインストールする時に--enbale-floatが抜けていた…fftwをコンパイルする時に

./configure --enable-float

とする。でscampをインストールするときはインストール前に以下のように設定をする。

> export LDFLAGS="-L/[path to fftw lib]/lib"
> export CPPFLAGS="-I/[path to fftw include]/include"

ちなみに自分の場合は/opt/local/libと/opt/local/includeにあった。で、コンパイルの際に

> ./configure --with-fftw=/[path to fftw lib]/lib --with-fftw-incdir=/[path to fftw include]/include --with-atlas=/[path to atlas lib]/lib --with-atlas-incdir=/[path to atlas include]/include

とする。しかし、このままだとmakeの時に

Undefined symbols for architecture x86_64:
"_plcol", referenced from:
_cplot_allsky in astrcplot.o
_cplot_astrefprop in astrcplot.o
_cplot_astrcolshift1d in astrcplot.o
_cplot_referrhisto2d in astrcplot.o
_cplot_referrhisto1d in astrcplot.o
_cplot_aderrhisto2d in astrcplot.o
_cplot_aderrhisto1d in astrcplot.o
...
ld: symbol(s) not found for architecture x86_64

というエラーが出たので、
http://www.astromatic.net/forum/showthread.php?tid=377&page=2
を参考にして、scampの./configureにplplotの設定を追加して、

> ./configure --with-fftw=/[path to fftw lib]/lib --with-fftw-incdir=/[path to fftw include]/include --with-atlas=/[path to atlas lib]/lib --with-atlas-incdir=/[path to atlas include]/include --with-plplot=/[path to plplot lib]/lib --with-plplot-incdir=/[path to plplot include]/include

としたところ、makeも通るようになった