I got this reported by a few users on #amarok @ freenode, as Amarok can use MySQL. The problem is that mysql_config --libs returns the LDFLAGS used for building in its output, which is wrong, very wrong, as autotools expects only libraries to be passed on _LIBADD for instance. The attached patch fixes the script in the sources not to export the ldflags in --libs, still exporting it in --ldflags, as I'm afraid it might be required, although broken that, too. HTH, Diego
Created attachment 90637 [details, diff] mysql-4.1.20-noexportldflags.patch
this also breaks gammu - upstream bug about mysql_config misbehaviors, which I filed almost an year ago http://bugs.mysql.com/bug.php?id=19900 (ssl thing is now fixed, although I don't know if this is on the gentoo side)
please try 5.0.54 when it comes out of pmask.