For example, under FreeBSD we need to link against libiconv to get normal support for charsets conversion. Normally, -liconv is added to the LIBS variable, but with --with-aio-support option it disappears. Here is one line patch that fixes the problem.
Created attachment 1987 [details]
Make AIO_LIBS persistent on one level up
Applying to SAMBA_3_0 and SAMBA_3_0_23