about summary refs log tree commit diff stats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e847f5b3..69e304c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,8 +81,10 @@ AC_CHECK_LIB([ssl], [main], [],
     [AC_MSG_ERROR([openssl is required for profanity])])
 AC_CHECK_LIB([strophe], [main], [],
     [AC_MSG_ERROR([libstrophe is required for profanity])])
-AC_CHECK_LIB([ncursesw], [main], [],
-    [AC_MSG_ERROR([ncursesw is required for profanity])])
+AC_CHECK_LIB([ncursesw], [wget_wch], [],
+    [AC_CHECK_LIB([ncurses],[wget_wch],
+	    [AC_MSG_NOTICE([ncursesw not found but trying with ncurses instead])],
+	    [AC_MSG_ERROR([ncurses wide character support is required for profanity])])])
 AC_CHECK_LIB([glib-2.0], [main], [],
     [AC_MSG_ERROR([glib-2.0 is required for profanity])])
 AC_CHECK_LIB([curl], [main], [],