added autoconf macro for fgr.