aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2f8d9cc..db68671 100644
--- a/configure.ac
+++ b/configure.ac
@@ -110,7 +110,10 @@ if test "$LIBPTHREAD" = ""; then
AC_CHECK_LIB(c_r,pthread_create,LIBPTHREAD="-lc_r")
fi
AC_CHECK_LIB(ossaudio,main,LIBOSS="-lossaudio")
-AC_CHECK_LIB(ncurses,initscr,LIBCURSES="-lncurses")
+AC_CHECK_LIB(ncursesw,initscr,LIBCURSES="-lncursesw")
+if test "$LIBCURSES" = ""; then
+ AC_CHECK_LIB(ncurses,initscr,LIBCURSES="-lncurses")
+fi
if test "$LIBCURSES" = ""; then
AC_CHECK_LIB(curses,initscr,LIBCURSES="-lcurses")
fi
@@ -120,6 +123,9 @@ if test "$LIBCURSES" = ""; then
echo " you need also the *-devel packages."
exit 1
fi
+if test "$LIBCURSES" = "-lncursesw"; then
+ CFLAGS="$CFLAGS -I/usr/include/ncursesw"
+fi
AC_SUBST(LIBPTHREAD)
AC_SUBST(LIBOSS)
AC_SUBST(LIBCURSES)

Privacy Policy