diff -Naur tiptop-2.3.1-orig/configure tiptop-2.3.1/configure --- tiptop-2.3.1-orig/configure 2017-10-08 10:24:46.000000000 +0200 +++ tiptop-2.3.1/configure 2019-02-07 16:17:15.101075423 +0100 @@ -3440,7 +3440,7 @@ $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lcurses $LIBS" +LIBS="$(pkg-config --libs ncurses) $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3475,7 +3475,7 @@ $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h - LIBS="-lcurses $LIBS" + LIBS="$(pkg-config --libs ncurses) $LIBS" else have_curses=no fi diff -Naur tiptop-2.3.1-orig/configure.ac tiptop-2.3.1/configure.ac --- tiptop-2.3.1-orig/configure.ac 2017-10-08 10:24:46.000000000 +0200 +++ tiptop-2.3.1/configure.ac 2019-02-07 16:03:39.700931354 +0100 @@ -22,7 +22,7 @@ AC_CHECK_LIB([curses], [initscr], [have_curses=yes; AC_DEFINE([HAVE_LIBCURSES], [1], [Define to 1 if you have the `curses' library (-lcurses).]) - LIBS="-lcurses $LIBS"], + LIBS="$(pkg-config --libs ncurses) $LIBS"], [have_curses=no]) fi