Changed FORTRAN directive from AC_F77_LIBRARY_LDFLAGS to AC_PROG_F77.