./bootstrap finaly ran successfully after updating versions of automake, autoconf, libtool and m4.
Now when I run ./configure --prefix=/usr/local/test_cb/ --enable-debug I am gettign the following.
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the foreign projects importer plugin... yes
checking whether to build the scripted wizard plugin... yes
checking whether to build the to-do plugin... yes
checking which (if any) contrib plugins to build... Unknown contrib plugin none, ignoring
none
checking if the compiler supports precompiled headers... yes
checking for pkg-config... yes
You don't have pkg.m4 properly installed
Thats the last few lines of the standard output.
I have verified that I have pkg-config and that pkg.m4 is in /usr/share/aclocal.
I have attached the config.log, hopefully this will help.
[attachment deleted by admin]