diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-04-19 10:50:44 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-04-19 10:50:44 +0100 |
commit | 36f1eb922530b254631781bd6475ff6348f511af (patch) | |
tree | 4b2710e60aef50aa75ac301e5ac799aab948f06a | |
parent | e97b6a1bb15e8cad319dceff53c58f8267e8152f (diff) | |
download | libguestfs-36f1eb922530b254631781bd6475ff6348f511af.tar.gz libguestfs-36f1eb922530b254631781bd6475ff6348f511af.tar.xz libguestfs-36f1eb922530b254631781bd6475ff6348f511af.zip |
configure: Test for tgetent, tputs and 'UP' symbols (from libtinfo).
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 257c2eb1..70bbc32b 100644 --- a/configure.ac +++ b/configure.ac @@ -221,6 +221,20 @@ AC_CHECK_FUNCS([\ statvfs \ sync]) +dnl tgetent, tputs and UP [sic] are all required. They come from libtinfo +dnl which is pulled in as a dependency of libncurses. +old_LIBS="$LIBS" +AC_CHECK_LIB([ncurses], [tgetent], [], [ + AC_MSG_ERROR(['ncurses' library not found, or it doesn't contain 'tgetent']) +]) +AC_CHECK_LIB([ncurses], [tputs], [], [ + AC_MSG_ERROR(['ncurses' library not found, or it doesn't contain 'tputs']) +]) +AC_CHECK_LIB([ncurses], [UP], [], [ + AC_MSG_ERROR(['ncurses' library not found, or it doesn't contain 'UP']) +]) +LIBS="$old_LIBS" + dnl For modified printf in the daemon, we need glibc either (old-style) dnl register_printf_function or (new-style) register_printf_specifier. AC_CHECK_FUNC([register_printf_specifier],[ |