All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Sowden <jeremy@azazel.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Netfilter Devel <netfilter-devel@vger.kernel.org>,
	Sebastian Priebe <sebastian.priebe@de.sii.group>
Subject: Re: [PATCH RFC nftables 4/4] cli: add linenoise CLI implementation.
Date: Sat, 21 Sep 2019 12:11:34 +0100	[thread overview]
Message-ID: <20190921111134.GB28617@azazel.net> (raw)
In-Reply-To: <20190920101901.tvnec3seyaonhmts@salvia>

[-- Attachment #1: Type: text/plain, Size: 2693 bytes --]

On 2019-09-20, at 12:19:01 +0200, Pablo Neira Ayuso wrote:
> On Mon, Sep 16, 2019 at 01:42:03PM +0100, Jeremy Sowden wrote:
> [...]
> > diff --git a/configure.ac b/configure.ac
> > index 68f97f090535..347f3b0cc772 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -68,14 +68,23 @@ AC_CHECK_LIB([gmp],[__gmpz_init], , AC_MSG_ERROR([No suitable version of libgmp
> >  AM_CONDITIONAL([BUILD_MINIGMP], [test "x$with_mini_gmp" = xyes])
> >
> >  AC_ARG_WITH([cli], [AS_HELP_STRING([--without-cli],
> > -            [disable interactive CLI (libreadline support)])],
> > -            [], [with_cli=yes])
> > -AS_IF([test "x$with_cli" != xno], [
> > +            [disable interactive CLI (libreadline or linenoise support)])],
> > +            [], [with_cli=readline])
> > +
> > +AS_IF([test "x$with_cli" = xreadline], [
> >  AC_CHECK_LIB([readline], [readline], ,
> > -	     AC_MSG_ERROR([No suitable version of libreadline found]))
> > +        AC_MSG_ERROR([No suitable version of libreadline found]))
> >  AC_DEFINE([HAVE_LIBREADLINE], [1], [])
> > +],
> > +      [test "x$with_cli" = xlinenoise], [
> > +AH_TEMPLATE([HAVE_LINENOISE], [])
> > +AC_DEFINE([HAVE_LINENOISE], [1], [])
> > +],
> > +      [test "x$with_cli" != xno], [
> > +AC_MSG_ERROR([unexpected CLI value: $with_cli])
> >  ])
> >  AM_CONDITIONAL([BUILD_CLI], [test "x$with_cli" != xno])
> > +AM_CONDITIONAL([BUILD_CLI_LINENOISE], [test "x$with_cli" = xlinenoise])
> >
> >  AC_ARG_WITH([xtables], [AS_HELP_STRING([--with-xtables],
> >              [Use libxtables for iptables interaction])],
> > @@ -118,6 +127,7 @@ AM_CONDITIONAL([HAVE_PYTHON], [test "$enable_python" != "no"])
> >  AC_CONFIG_FILES([					\
> >  		Makefile				\
> >  		libnftables.pc				\
> > +		linenoise/Makefile			\
> >  		src/Makefile				\
> >  		include/Makefile			\
> >  		include/nftables/Makefile		\
>
> You also have to update this code after AC_OUTPUT in configure.in to
> display libnoise, right?
>
> echo "
> nft configuration:
>   cli support:                  ${with_cli}
>   enable debugging symbols:     ${enable_debug}
>   use mini-gmp:                 ${with_mini_gmp}
>   enable man page:              ${enable_man_doc}
>   libxtables support:           ${with_xtables}
>   json output support:          ${with_json}"

${with_cli} will be "readline", "linenoise" or "no":

  $ ./configure --with-cli=linenoise
  [...]

  nft configuration:
    cli support:                  linenoise
    enable debugging symbols:     yes
    use mini-gmp:                 no
    enable man page:              yes
    libxtables support:           no
    json output support:          no
    enable Python:                yes (with /usr/bin/python)

J.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2019-09-21 11:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-26  6:55 Feature request: Add support for linenoise as alternative to readline Priebe, Sebastian
2019-09-16 12:41 ` [PATCH RFC nftables 0/4] Add Linenoise support to the CLI Jeremy Sowden
2019-09-16 12:42   ` [PATCH RFC nftables 1/4] configure: remove unused AC_SUBST macros Jeremy Sowden
2019-09-20 10:15     ` Pablo Neira Ayuso
2019-09-16 12:42   ` [PATCH RFC nftables 2/4] cli: remove unused declaration Jeremy Sowden
2019-09-20 10:15     ` Pablo Neira Ayuso
2019-09-16 12:42   ` [PATCH RFC nftables 3/4] cli: add upstream linenoise source Jeremy Sowden
2019-09-16 12:42   ` [PATCH RFC nftables 4/4] cli: add linenoise CLI implementation Jeremy Sowden
2019-09-20 10:19     ` Pablo Neira Ayuso
2019-09-21 11:11       ` Jeremy Sowden [this message]
2019-09-20 10:15   ` [PATCH RFC nftables 0/4] Add Linenoise support to the CLI Pablo Neira Ayuso
2019-09-21 11:07     ` Jeremy Sowden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190921111134.GB28617@azazel.net \
    --to=jeremy@azazel.net \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=sebastian.priebe@de.sii.group \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.