configure.ac: Do not use pkg-config.

Instead, use AC_CHECK_HEADER and the check-specific macro
AM_PATH_CHECK.