lib/smbreadline: detect picky compile issue with readline.h
authorUri Simchoni <uri@samba.org>
Thu, 23 Nov 2017 20:20:52 +0000 (22:20 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 24 Nov 2017 00:13:15 +0000 (01:13 +0100)
commit16cedcb173da89a9d6f8894e6ff4a42158c5c3b2
treedf484e5621123ea52a0f24e9b732ba2380ef9e58
parent4fc4e41760af91fb1fa28f6a9a8b1ee7e4d47dbc
lib/smbreadline: detect picky compile issue with readline.h

readline.h has build issues with clang if -Wstrict-prototypes
is enabled. Detect this and also detect whether the known
workaround works.

Fix suggested by Timur I. Bakeyev <timur@freebsd.org>

cf. https://lists.gnu.org/archive/html/bug-readline/2014-04/msg00018.html
cf. https://lists.samba.org/archive/samba-technical/2017-November/123923.html

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/smbreadline/wscript_configure