`configure --help` shows that the doxygen api-docs aren't enabled by default. But at least for me, they are being generated by default.
I'm afraid to admit that after looking at https://github.com/geany/geany/blob/master/m4/geany-doxygen.m4 I don't know how to fix that.