I managed to get JAGS to compile under Fedora Core 5 by rebuilding the autoconfig stuff. Here are the steps I used.
setenv F77 gfortran
cp /usr/share/automake-1.9/install-sh .
cp /usr/share/automake-1.9/config.* .
cp /usr/share/automake-1.9/missing .
cp /usr/share/automake-1.9/INSTALL .
cp /usr/share/automake-1.9/compile .
cp /usr/share/automake-1.9/depcomp .
cp /usr/share/libtool/ltmain.sh .
cp install-sh config.* missing ltmain.sh libltdl
./configure --prefix=$HOME '--with-blas=/usr/lib64/libblas.so' '--with-lapack=/
I also created a mini acinclude.m4 that had just the following lines:
this seems to work, but I have not had time to test it much.