diff --git a/meson.build b/meson.build index 1fc8ecaf..0745f909 100644 --- a/meson.build +++ b/meson.build @@ -204,6 +204,8 @@ conf_data.set10('HAVE_ALLOCA_H', compiler.has_header('alloca.h')) conf_data.set('HAVE_STDALIGN_H', compiler.has_header('stdalign.h')) +conf_data.set('HAVE_TERM_H', compiler.has_header('term.h')) + deps = [] if conf_data.get('CONFIG_GZIP') zdeps = dependency('zlib') @@ -331,6 +333,11 @@ else conf_data.set('CONFIG_INTERLINK', false) endif +if conf_data.get('CONFIG_TERMINFO') + terminfodeps = dependency('ncursesw') + deps += terminfodeps +endif + #AC_STRUCT_TM #AC_C_CONST #AC_C_INLINE @@ -695,7 +702,6 @@ conf_data.set('SIZEOF_OFF_T', compiler.sizeof('off_t')) #CONFIG_GSSAPI', false) #CONFIG_DATA', true) #CONFIG_MOUSE', true) -#CONFIG_TERMINFO', false) #CONFIG_SMALL', false) #CONFIG_DEBUG', false) #CONFIG_OWN_LIBC', false) diff --git a/src/terminal/terminfo.c b/src/terminal/terminfo.c index 5ca32801..3da97a02 100644 --- a/src/terminal/terminfo.c +++ b/src/terminal/terminfo.c @@ -18,6 +18,7 @@ #endif #include "elinks.h" +#include "terminfo.h" int terminfo_setupterm(char *term, int fildes)