你原来安装了mysql吗?如果没有,安装mysql;如果已经有了,那就是configure没有找到,用下面的这些configure选项:
--with-mysql=<path> root directory path of MySQL installation
--with-mysql-lib=<path> directory path of MySQL library installation
--with-mysql-include=<path>
directory path of MySQL header installation