diff options
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b2e6b2e..4a24316 100644 --- a/configure.ac +++ b/configure.ac @@ -247,7 +247,7 @@ case $INTERFACE in AC_MSG_RESULT([$XCURSES_LIBS]) LIBS="$LIBS $XCURSES_LIBS" - # This is also used by the curses.h itself: + # It is crucial to define XCURSES before including curses.h. AC_DEFINE(XCURSES, 1, [Enable PDCurses/XCurses extensions]) AC_DEFINE(PDCURSES_GUI, 1, [PDCurses with GUI window]) @@ -280,6 +280,11 @@ case $INTERFACE in AC_DEFINE(PDCURSES_MOD, 1, [PDCursesMod extensions]) ]) + # It is crucial to define PDC_WIDE before including curses.h. + AC_CHECK_FUNC([add_wch], [ + AC_DEFINE(PDC_WIDE, 1, [Built with wide-character support]) + ]) + # This is detectable at runtime on PDCursesMod using PDC_get_version(). # "Classic" PDCurses does not allow runtime or compile-time checks for # discerning eg. WinCon from SDL. |