[bug] ./configure --disable-multithread didn't work

AC_CHECK_HEADERS and AC_CHECK_LIB should not be called before AC_PROG_CC.
[dist] update configure