File grub-configure-check-libncurses of Package grub

Index: grub-0.97/configure.ac
===================================================================
--- grub-0.97.orig/configure.ac
+++ grub-0.97/configure.ac
@@ -207,7 +207,7 @@ AC_CHECK_LIB(util, opendisk, [GRUB_LIBS=
 
 # Unless the user specify --without-curses, check for curses.
 if test "x$with_curses" != "xno"; then
-  AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lncurses"
+  AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS `ncurses5-config --libs`"
   AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])],
     [AC_CHECK_LIB(curses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lcurses"
        AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])])])
openSUSE Build Service is sponsored by