OSSP CVS Repository

ossp - Difference in ossp-pkg/js/configure.ac versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/js/configure.ac 1.3 -> 1.4

--- configure.ac 2006/07/22 14:03:51     1.3
+++ configure.ac 2006/07/22 15:02:07     1.4
@@ -47,6 +47,35 @@
 
 CPPFLAGS="$CPPFLAGS -DOSSP"
 
+CLI_CPPFLAGS=""
+CLI_LDFLAGS=""
+CLI_LIBS=""
+AC_ARG_WITH([editline],
+    AC_HELP_STRING([--with-editline], [build command line interface with line editing support via editline, libedit or GNU readline]),
+    [ac_cv_with_editline=$withval], [ac_cv_with_editline=no])
+AC_CACHE_CHECK([whether to build command line interface with line editing support],
+    [ac_cv_with_editline], [ac_cv_with_editline=no])
+if test ".$ac_cv_with_editline" != ".no"; then
+    CLI_CPPFLAGS="-DEDITLINE"
+    case "$ac_cv_with_editline" in
+        /* ) CLI_LDFLAGS="-L$ac_cv_with_editline" ;;
+    esac
+    OLD_LDFLAGS="$LDFLAGS";
+    OLD_LIBS="$LIBS";
+    LDFLAGS="$LDFLAGS $CLI_LDFLAGS"
+    LIBS=""
+    AC_SEARCH_LIBS(tcgetattr, termcap termlib curses ncurses)
+    AC_SEARCH_LIBS(tputs, termcap termlib curses ncurses)
+    TERM_LIBS="$LIBS"
+    AC_SEARCH_LIBS(readline, editline edit readline,,, [$TERM_LIBS])
+    CLI_LIBS="$LIBS"
+    LDFLAGS="$OLD_LDFLAGS"
+    LIBS="$OLD_LIBS"
+fi
+AC_SUBST(CLI_CPPFLAGS)
+AC_SUBST(CLI_LDFLAGS)
+AC_SUBST(CLI_LIBS)
+
 with_tags=""
 sinclude(libtool.m4)
 AC_PROG_LIBTOOL

CVSTrac 2.0.1