aboutsummaryrefslogtreecommitdiffhomepage
path: root/m4/ax_with_ncurses.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ax_with_ncurses.m4')
-rw-r--r--m4/ax_with_ncurses.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/m4/ax_with_ncurses.m4 b/m4/ax_with_ncurses.m4
index cefd21f..d4b9462 100644
--- a/m4/ax_with_ncurses.m4
+++ b/m4/ax_with_ncurses.m4
@@ -186,7 +186,9 @@ AC_DEFUN([AX_WITH_NCURSES], [
@%:@include <curses.h>
@%:@ifndef _XOPEN_CURSES
@%:@error "this Curses library is not enhanced"
- "this Curses library is not enhanced"
+ @%:@endif
+ @%:@ifndef NCURSES_VERSION
+ @%:@error "the curses library is not an ncurses""
@%:@endif
]], [[
chtype a = A_BOLD;
@@ -239,7 +241,9 @@ AC_DEFUN([AX_WITH_NCURSES], [
@%:@include <curses.h>
@%:@ifndef _XOPEN_CURSES
@%:@error "this Curses library is not enhanced"
- "this Curses library is not enhanced"
+ @%:@endif
+ @%:@ifndef NCURSES_VERSION
+ @%:@error "the curses library is not an ncurses""
@%:@endif
]], [[
chtype a = A_BOLD;