aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPavel Grigorenko <grigorenkopv@ya.ru>2022-11-21 22:53:28 +0300
committerPavel Grigorenko <grigorenkopv@ya.ru>2022-11-21 22:53:28 +0300
commit163938cfd3576078074ea4e91d560cff3688f511 (patch)
treefa87999a612065883a2531581218536a82476b9d /m4
parent9e3c574ec679f1468cdb8cc55fab441a86123b11 (diff)
downloadcrosstool-ng-163938cfd3576078074ea4e91d560cff3688f511.tar.gz
crosstool-ng-163938cfd3576078074ea4e91d560cff3688f511.tar.bz2
crosstool-ng-163938cfd3576078074ea4e91d560cff3688f511.zip
Fix `--with-ncurses` not working on Arch Linux
Reverts the changes introduced to `m4/ax_with_curses_extra.m4` in 59b664806c55dc1e5878448be2536fe110944f62, which seem to make `cofigure` look only for `ncursesw/panel.h` and not consider `panel.h` as a candidate, thus causing `./configure` to fail with "error: panel library not found" on systems (such as Arch Linux) where ncurses headers are not put under the `ncursesw/` directory. Signed-off-by: Pavel Grigorenko <grigorenkopv@ya.ru>
Diffstat (limited to 'm4')
-rw-r--r--m4/ax_with_curses_extra.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/ax_with_curses_extra.m4 b/m4/ax_with_curses_extra.m4
index 7056d685..c620a441 100644
--- a/m4/ax_with_curses_extra.m4
+++ b/m4/ax_with_curses_extra.m4
@@ -212,6 +212,9 @@ AC_DEFUN([_AX_WITH_CURSES_EXTRA], [
], [
AS_IF([test "x$ax_cv_curses_which" = xncursesw], [
_AX_WITH_CURSES_CHECKEXTRA([$1], [$2], [$3], [ncursesw/$4], [$5])
+ AS_IF([test x$[]ax_cv_[]m4_tolower($1) != "xyes"], [
+ _AX_WITH_CURSES_CHECKEXTRA([$1], [$2], [$3], [$4], [$6])
+ ])
], [test "x$ax_cv_curses_which" = xncurses], [
_AX_WITH_CURSES_CHECKEXTRA([$1], [$2], [$3], [$4], [$6])
AS_IF([test x$[]ax_cv_[]m4_tolower($1) != "xyes"], [