summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTom Lane2004-12-02 20:04:20 +0000
committerTom Lane2004-12-02 20:04:20 +0000
commitc833c6c558eee7d51c3aa9540327aadb376057d4 (patch)
tree980d773b88bb82046a8c428295624ef0373de2ac /configure
parentd76589114d1723bb0cb666dcb70058b74052e63b (diff)
Hack to work around broken linker on older NetBSD/OpenBSD/Irix assumed
that readline must depend on libcurses, but it seems more recent ones use libtermcap instead. Allow that case.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 8 insertions, 7 deletions
diff --git a/configure b/configure
index 378cd612910..3adda4f71e2 100755
--- a/configure
+++ b/configure
@@ -5996,13 +5996,14 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- # NetBSD, OpenBSD, and Irix have a broken linker that does not
- # recognize dependent libraries
- case $host_os in netbsd* | openbsd* | irix*)
- case $pgac_lib in
- *curses*) ;;
- *) pgac_lib=" -lcurses" ;;
- esac
+ # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
+ # recognize dependent libraries; assume curses is needed if we didn't
+ # find any dependency.
+ case $host_os in
+ netbsd* | openbsd* | irix*)
+ if test x"$pgac_lib" = x"" ; then
+ pgac_lib=" -lcurses"
+ fi ;;
esac
pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"