app-editors/shed: fix build

Closes: https://bugs.gentoo.org/922987
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
Akinori Hattori 2024-01-27 16:07:50 +09:00
parent a647d4041b
commit 6f03b9bdc1
No known key found for this signature in database
GPG Key ID: 5B43E3E2817765EB
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- a/configure.ac
+++ b/configure.ac
@@ -42,9 +42,8 @@
fi
ERR="Required package missing!"
-AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([$ERR]))
+PKG_CHECK_MODULES(ncurses,ncurses,[LIBS="$LIBS $ncurses_LIBS"],AC_MSG_ERROR([$ERR]))
AC_CHECK_HEADER(getopt.h,:,AC_MSG_ERROR([$ERR]))
-AC_CHECK_LIB(ncurses,initscr)
AC_CHECK_LIB(m,pow)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT