What CentOS version are you running?
Also I have updated my CentOS build post, because in release 7 MySQL is replaced by MariaDB. Therefore the mysql packages are replaced by maradb-server and mariadb-devel.
You can check if your mysql client is detected correctly by running:
PHP Code:
mysql_config --cflags --libs