configure.ac: use the portable '=' operator for the 'test' command

Thanks to Kevin M. Buckley for providing the patch

cmr=v1.8.2:reviewer=rhc
fortran: fix compile issue with ABSoft compilers

Simplify and fix the r32246

cmr=v1.8.2:ticket=#4792