aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-10-01 13:12:18 +1000
committerSteve Bennett <steveb@workware.net.au>2010-11-17 07:57:38 +1000
commit675919b47c3284c12ccc51f09859bde4789df824 (patch)
tree05e7746878a430ab112200b4f7cd3ac006f4a823 /configure
parentb45e63f2b5ca11d102690b19d8c5f7685754e75c (diff)
downloadjimtcl-675919b47c3284c12ccc51f09859bde4789df824.zip
jimtcl-675919b47c3284c12ccc51f09859bde4789df824.tar.gz
jimtcl-675919b47c3284c12ccc51f09859bde4789df824.tar.bz2
Add command line editing with linenoise
Enabled by default, but can be disabled with --disable-lineedit Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 24 insertions, 6 deletions
diff --git a/configure b/configure
index a0ce540..51c4d67 100755
--- a/configure
+++ b/configure
@@ -684,6 +684,7 @@ enable_fork
enable_math
enable_ipv6
enable_utf8
+enable_lineedit
with_jim_ext
with_out_jim_ext
with_jim_extmod
@@ -1321,6 +1322,7 @@ Optional Features:
--enable-math include support for math functions
--enable-ipv6 include ipv6 support in the aio extension
--enable-utf8 include support for utf8-encoded strings
+ --disable-lineedit disable line editing
--enable-shared build a shared library instead of a static library
--enable-static build a static library instead of a shared library
@@ -3644,13 +3646,29 @@ fi
# Check whether --enable-utf8 was given.
if test "${enable_utf8+set}" = set; then :
enableval=$enable_utf8;
- if test "x$enableval" = "xyes" ; then
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DJIM_UTF8 -DJIM_REGEXP"
- fi
+ if test "x$enableval" = "xyes" ; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -DJIM_UTF8 -DJIM_REGEXP"
+ fi
+
+
+fi
+
+
+lineedit=1
+# Check whether --enable-lineedit was given.
+if test "${enable_lineedit+set}" = set; then :
+ enableval=$enable_lineedit;
+ if test "x$enableval" = "xno" ; then
+ lineedit=0
+ fi
fi
+if test $lineedit -eq 1; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_LINENOISE"
+ EXTRA_OBJS="$EXTRA_OBJS linenoise.o"
+fi
# Is $1 in list $2?
in_list()
@@ -3743,9 +3761,9 @@ JIM_LIBTYPE=$JIM_LIBTYPE
# Check whether --with-jim-regexp was given.
if test "${with_jim_regexp+set}" = set; then :
withval=$with_jim_regexp;
- if test "x$withval" = "xyes" ; then
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DJIM_REGEXP"
- fi
+ if test "x$withval" = "xyes" ; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -DJIM_REGEXP"
+ fi
fi