According to the Autoconf manual, "grep -q" is not portable, so instead redirect stdout to /dev/null.