Refactor configure.ac.

* configure.ac
  - Refactor.