Hi,
For example the following line tells you that during installation the header files weren't found
sql_mysql.c:40:19: mysql.h: No such file or directory
If you have installed mysql you have to tell the configure script, where the mysql
- include
- library
- and the mysql programm
on you box "lives"
 
look at
./configure --help
for more information.
it could look like (change to your environment!!!):
./configure --with-mysql-include-dir=<PATH to mysql include-dir> --with-mysql-lib-dir=<PATH to mysql-lib dir> --with-mysql-dir=<PATH to mysql-dir>
marco