mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
include curses.h when needed
This commit is contained in:
parent
fca3e83e68
commit
7bac5eb762
3 changed files with 31 additions and 4 deletions
22
meson.build
22
meson.build
|
|
@ -569,6 +569,28 @@ foreach h : headers
|
|||
endif
|
||||
endforeach
|
||||
|
||||
if want_textui and conf.get('HAVE_TERM_H', 0) == 1
|
||||
if not cc.links('''
|
||||
#include <stdio.h>
|
||||
#include <term.h>
|
||||
int main () {
|
||||
return tputs("x", 1, putchar);
|
||||
}
|
||||
''', dependencies : textui_dep)
|
||||
if cc.has_header('curses.h') and cc.links('''
|
||||
#include <curses.h>
|
||||
#include <term.h>
|
||||
int main () {
|
||||
return tputs("x", 1, putchar);
|
||||
}
|
||||
''', dependencies : textui_dep, name : 'working Curses')
|
||||
conf.set('NEED_CURSES_H', 1, description : 'tputs needs curses.h')
|
||||
else
|
||||
error('could not link terminfo')
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
conf.set('HAVE_LIBUTF8PROC', have_libutf8proc)
|
||||
conf.set_quoted('PACKAGE_VERSION', package_version)
|
||||
conf.set_quoted('PACKAGE_TARNAME', meson.project_name())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue