1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[meson] ncursesw dependency when built --with-terminfo

This commit is contained in:
Witold Filipczyk 2021-04-12 21:17:27 +02:00
parent 8f73247158
commit 4e6d3a0037
2 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -18,6 +18,7 @@
#endif
#include "elinks.h"
#include "terminfo.h"
int
terminfo_setupterm(char *term, int fildes)