rework readline check
rework readline check

Use the recommended AC_SEARCH_LIBS instead of AC_CHECK_LIB. Add a
workaround for a CentOS 5.5 bug where one has to link with
libncurses when using readline.

scality/Droplet-sh,scality/Droplet-sh