I have systems with md5.h installed in /usr/include (it's from cyrus-sasl packages) but just including this file is not enough to get the compilation ok. The autoconf directive: AC_CHECK_HEADERS(md5.h) fails to correctly detect that including the system md5.h is not ok as it assumes that if a test involving just the C-preproc is enough even though the compiler failed to compile the same snipet.
This bug has been triggered by changes made in bug 9037 and the problems are similar to those in bug 9094.
Patch proposal from metze located at https://gitweb.samba.org/?p=metze/samba/wip.git;a=commitdiff_plain;h=3e6bd5e72e702ebe127008fb1037909f1c678fa4 fix the issue on 3.6.9.
Created attachment 8222 [details] Proposed patch for 3.6
Tested on my platforms, it also integrate proposal from metze with fixes for missing test and inversed logic
Comment on attachment 8222 [details] Proposed patch for 3.6 Looks good for 3.6
Volker and/or Bjorn can you check on *bsd ? Thanks.
Created attachment 8234 [details] Patch for v4-0-test
Karolin, Can you take the 3.6 patch for the upcomming 3.6.10 and the 4.0 one for the v4-0-test branch ? If more explanation are needed feel free to ping me.
Pushed to v3-6-test and autobuild-v4-0-test.
Pushed to v4-0-test. Closing out bug report. Thanks!