AC_CHECK_LIB(readline, rl_completion_matches,,
[AC_MSG_ERROR([cannot find GNU libreadline 4.2 or higher])],
-lcurses)
LIBS="-lcurses -lreadline"
LIBS="-lreadline -lcurses"
# It's better to have this string in one single place.
LIBCDAUDIO_MISSING="couldn't locate libcdaudio."