Folks,
while trying to configure and compile 5.2.15 on HP-UX it does not
properly detect libcuses and fails to detect installed libreadline.
The regression is identical to the one I reported with readline:
https://lists.gnu.org/archive/html/bug-readline/2023-08/msg00009.html
Here is a simple patch which works for me:
diff -ur configure configure
--- configure 2023-08-17 21:17:53 +0200
+++ configure 2023-08-17 21:23:41 +0200
@@ -5960,8 +5960,7 @@
TERMCAP_LIB=
TERMCAP_DEP=
else
-# we assume ncurses is installed somewhere the linker can find it
-TERMCAP_LIB=-lncurses
+TERMCAP_LIB=-lcurses
TERMCAP_DEP=
fi
@@ -21584,8 +21583,7 @@
TERMCAP_LIB=
TERMCAP_DEP=
else
-# we assume ncurses is installed somewhere the linker can find it
-TERMCAP_LIB=-lncurses
+TERMCAP_LIB=-lcurses
TERMCAP_DEP=
fi
So the source in aclocal.m4 needs to be fixed.
Result:
# ldd /opt/ports/bin/bash
/opt/ports/bin/bash:
libreadline.so.8 => /opt/ports/lib/hpux32/libreadline.so.8
libhistory.so.8 => /opt/ports/lib/hpux32/libhistory.so.8
libxcurses.so.1 => /usr/lib/hpux32/libxcurses.so.1
libintl.so.11 => /opt/ports/lib/hpux32/libintl.so.11
libiconv.so.8 => /opt/ports/lib/hpux32/libiconv.so.8
libdl.so.1 => /usr/lib/hpux32/libdl.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libdl.so.1 => /usr/lib/hpux32/libdl.so.1
Note that libcurses links to libxcurses.
Michael