openbsd-ports/math/gnuplot/patches/patch-configure
pirofti 569fbf97f8 Update to gnuplot 5.2.1.
While at it remove obsolete emacs dependency, use GNU readline and
take maintainership.

OK and input feinerer@, OK steven@
2017-11-04 17:21:41 +00:00

44 lines
1.8 KiB
Plaintext

$OpenBSD: patch-configure,v 1.1 2017/11/04 17:21:41 pirofti Exp $
readline -> ereadline
Index: configure
--- configure.orig
+++ configure
@@ -10127,7 +10127,7 @@ fi
if test -d $with_readline/lib; then
LDFLAGS="$LDFLAGS -L$with_readline/lib"
fi
- if test ! -d $with_readline/include/readline; then
+ if test ! -d $with_readline/include/ereadline; then
if test -d $with_readline/include/editline; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_readline contains libedit, not readline!" >&5
$as_echo "$as_me: WARNING: $with_readline contains libedit, not readline!" >&2;}
@@ -10220,7 +10220,7 @@ if ${ac_cv_lib_readline_remove_history+:} false; then
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline ${gp_tcap} $LIBS"
+LIBS="-lereadline ${gp_tcap} $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -10251,7 +10251,7 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_remove_history" >&5
$as_echo "$ac_cv_lib_readline_remove_history" >&6; }
if test "x$ac_cv_lib_readline_remove_history" = xyes; then :
- TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
+ TERMLIBS="-lereadline $gp_tcap $TERMLIBS"
fi
if test "$ac_cv_lib_readline_remove_history" = no; then
@@ -10292,7 +10292,7 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_remove_history" >&5
$as_echo "$ac_cv_lib_history_remove_history" >&6; }
if test "x$ac_cv_lib_history_remove_history" = xyes; then :
- TERMLIBS="-lreadline -lhistory $gp_tcap $TERMLIBS"
+ TERMLIBS="-lereadline -lhistory $gp_tcap $TERMLIBS"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU readline not found - falling back to builtin readline" >&5
$as_echo "$as_me: WARNING: GNU readline not found - falling back to builtin readline" >&2;}