Not part of the Mozilla build.

Promulgate line-editing to the lcshell standalone command-line interpreter, and add more comments to the js shell support for the same.
This commit is contained in:
mccabe%netscape.com 2000-07-26 03:14:49 +00:00
parent 3eecef36a3
commit 6183efe935
2 changed files with 22 additions and 0 deletions

View File

@ -104,12 +104,16 @@ endif
#
# Line editing support.
# Define JS_READLINE or JS_EDITLINE to enable line editing in the
# js command-line interpreter.
#
ifdef JS_READLINE
# For those platforms with the readline library installed.
DEFINES += -DEDITLINE
PROG_LIBS += -lreadline
else
ifdef JS_EDITLINE
# Use the editline library, built locally.
PREDIRS += editline
DEFINES += -DEDITLINE
PROG_LIBS += -Leditline/$(OBJDIR) -ledit

View File

@ -102,6 +102,24 @@ else
OTHER_LIBS += -L$(DEPTH)/fdlibm/$(OBJDIR) -lfdm -L../$(OBJDIR) -ljs
endif
#
# Line editing support.
# Define JS_READLINE or JS_EDITLINE to enable line editing in the
# lcshell command-line interpreter.
#
ifdef JS_READLINE
# For those platforms with the readline library installed.
DEFINES += -DEDITLINE
OTHER_LIBS += -lreadline
else
ifdef JS_EDITLINE
# Use the editline library from ../editline.
PREDIRS += ../editline
DEFINES += -DEDITLINE
OTHER_LIBS += -L../editline/$(OBJDIR) -ledit
endif
endif
ifdef JS_THREADSAFE
DEFINES += -DJS_THREADSAFE
INCLUDES += -I../../../dist/$(OBJDIR)/include