Improve TTY library detection
authorNelson Ferreira <nelson.ferreira@ieee.org>
Tue, 8 Sep 2015 22:12:21 +0000 (18:12 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Tue, 8 Sep 2015 22:12:21 +0000 (18:12 -0400)
commit5c14c1d0f287c56ced4276526f61d90ce2420212
tree18dd3a10c1a97a0aa84bc524f4548445bff92cea
parente0048c32e6de7b45bfacc683b81f0725581d883f
Improve TTY library detection

* configure.ac: Iterate over all "auto" libraries by order of
preference to find out which are linkable.  Add libraries
requested on command line by adding --with-<lib>=yes before the
auto ones.  Then find which libraries are needed to get all of the
required terminal functions.  Check if combination still allows
for all functions to build.  When all else fails if
--with-builtin-tty=yes is passed, use that.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
configure.ac