~ :The GNU binutils use this macro to detect this case:
~ :

oh, by the way while playing with this macro I noticed a couple of
problems :
1. `test $bfd_cv_decl_needed_$1` didn't work because $bfd_cv_decl_needed
was considered as two shell variables $bfd_cv_decl_needed and $1, so I had
to tweak it with eval "test `echo ..`".
2. It breaks autoheader is some funny way, because autoheader replaces
most of macroses which are supposed to define things with it's own pieces
which then generate config.h.in. However it doesn't execute shell
scripting parts, so for every used macros like this it would have:
#undef NEED_DECLARATION_ 

I have fixed it by adding a wrapper macro with `for f in functions` so
#undef NEED_DECLARATION_ appears only once, but now you still have to
manually define all #undef NEED_DECLARATION_FUNCTIONS to get the things
working properly.


other than that it works fine, thanks :)

Reply via email to