build: check harder for readline
authorDan Williams <dcbw@redhat.com>
Thu, 26 Jun 2014 17:04:19 +0000 (12:04 -0500)
committerDan Williams <dcbw@redhat.com>
Fri, 27 Jun 2014 18:10:50 +0000 (13:10 -0500)
commit29297f8531e24d4df616c5c3acace9e23a695a02
tree7ffcf55798bba0009d0e56bc2bbfac415d438988
parent32ebcbe7c7c6ed374269a228192b32895f5d69e1
build: check harder for readline

Not all distros build their readline linked with a termcap library,
since apps are (apparently) supposed to choose one for themselves
and explicitly link to it when using readline.  So add some checks
to figure out whether readline is already linked, and if not, prefer
ncurses since we use that for nmtui already.

ax_lib_readline based off:

http://www.gnu.org/software/autoconf-archive/ax_lib_readline.html
configure.ac
m4/ax_lib_readline.m4 [new file with mode: 0644]