PHP 7.3 を --with-imap 付きでconfigureした時に発生したエラー

CentOS 7 にて、PHP 7.3 を --with-imap 付きでconfigureした時に色々とエラーが出たのでメモ。

エラー・その1

checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE... no
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

libc-client-devel をインストールすると解決する。

エラー・その2

checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

ライブラリが見つからないらしい。
--with-libdir=lib64 を付加すると解決する。

エラー・その3

checking for crypt in -lcrypt... yes
configure: error: This c-client library is built with Kerberos support.

      Add --with-kerberos to your configure line. Check config.log for details.

指示通りに、--with-kerberos を付加すると解決する。

エラー・その4

checking for crypt in -lcrypt... yes
configure: error: This c-client library is built with SSL support.

      Add --with-imap-ssl to your configure line. Check config.log for details.

指示通りに、--with-imap-ssl を付加すると解決する。