When attempting to compile Jabberd 2.0s9 under RedHat 9 with Mysql installed under /usr/local/mysql, the configure script will error out with:
checking for mysql.h in /usr/local/include/mysql... no
configure: error: MySQL client libraries not found
Contrary to the Jabber documentation, the configure script does not support the --with-mysql=<path> option. Using the ----with-extra-include-path= and --with-extra-library-path- options also do not work.
To get the configure script to correctly identify an install of Mysql in a non-standard location you must:
export CFLAGS="-I/usr/kerberos/include -I/usr/local/mysql/include/mysql"
before running configure.
Depending on your SSL installation you may need to add options for the ssl include and library paths to the above.