summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2001-10-19 00:24:39 +0000
committermdodd <mdodd@FreeBSD.org>2001-10-19 00:24:39 +0000
commitb22126f3d3bf9d22763b5117abce9b870db34e34 (patch)
tree439ace547fbf77f2883b5c3fce878b000e75ad40 /gnu
parent7fc1eccefc3093a5858dbca88842ecd5b79d1beb (diff)
downloadFreeBSD-src-b22126f3d3bf9d22763b5117abce9b870db34e34.zip
FreeBSD-src-b22126f3d3bf9d22763b5117abce9b870db34e34.tar.gz
Turn on the libedit support in bc. Turn off libreadline.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/bc/Makefile6
-rw-r--r--gnu/usr.bin/bc/config.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/gnu/usr.bin/bc/Makefile b/gnu/usr.bin/bc/Makefile
index a8c3af4..3ad6d3c 100644
--- a/gnu/usr.bin/bc/Makefile
+++ b/gnu/usr.bin/bc/Makefile
@@ -8,8 +8,10 @@ PROG= bc
SRCS= bc.y execute.c global.c load.c main.c scan.l storage.c util.c \
number.c getopt.c getopt1.c
CFLAGS+=-I. -I${.CURDIR} -I${.CURDIR}/../../../contrib/bc/h -DHAVE_CONFIG_H
-DPADD= ${LIBREADLINE} ${LIBTERMCAP}
-LDADD= -lreadline -ltermcap
+#DPADD= ${LIBREADLINE} ${LIBTERMCAP}
+#LDADD= -lreadline -ltermcap
+DPADD += ${LIBEDIT} ${LIBTERMCAP}
+LDADD += -ledit -ltermcap
EXAMPLES= ckbook.b pi.b primes.b twins.b
EXAMPDIR= /usr/share/examples/bc
diff --git a/gnu/usr.bin/bc/config.h b/gnu/usr.bin/bc/config.h
index e53feba..4d70283 100644
--- a/gnu/usr.bin/bc/config.h
+++ b/gnu/usr.bin/bc/config.h
@@ -41,10 +41,10 @@
#define BC_COPYRIGHT "Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc."
/* Define to use the readline library. */
-#define READLINE 1
+/* #define READLINE 1 */
/* Define to use the BSD libedit library. */
-/* #undef LIBEDIT */
+#define LIBEDIT 1
/* Define to `size_t' if <sys/types.h> and <stddef.h> don't define. */
/* #undef ptrdiff_t */
OpenPOWER on IntegriCloud