Still need to fix the bug where the .so module ends up
in the wrong directory. Maybe just "mv" it after install ?
/usr/local/lib/libwxsmith.so
/usr/local/share/codeblocks/plugins/libwxsmithcontribitems.so
That won't help much. From what I've read, libtool will store library's path somewhere and won't allow to load from another location :/
I also found out what's the problem with automake. When generating libraries from one Makefile.am, it uses $(libdir) global variable to set output directory for libraries. And despite all those superb functions it has , it won't allow to specify custom dir separately for each library :x. No problem, only need to mess the source with some another directory, put wxsmithpluginregistrants.cpp into it add another Makefile.am, register it inside main configure.in and
maybe it will work.
I'm just annoyed with it, two days lost for searching for such stupid thing...
[UPDATE]: Ok, I've got results: NO WAY, it won't work. Only because libwxsmith is created before libwxsmithlib (what's forced by fact that libwxsmith is in subdirectory and subdirectories are processed first). Enough, 2.30 AM, give up. I'll waste another day tomorrow by totally reorganizing wxSmith's directory layout just because automake wants so... @#$@#%