configure: use AC_LANG_PROGRAM consistently