All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joerg Vehlow <lkml@jv-coder.de>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] configure.ac: Fix --with* options
Date: Thu, 14 Nov 2019 07:31:51 +0100	[thread overview]
Message-ID: <e506bf38-f1d9-6f9e-e4cd-6edf24f74cd9@jv-coder.de> (raw)
In-Reply-To: <CAEemH2eP-ibqs=Mc-aMYUxj7CJ-u9CUZnkD8=Ro_2td9StPVZQ@mail.gmail.com>

Hi Li,

> I think this patch makes sense. It follows the AC_ARG_WITH official 
> usage, and make use?of the shell variable 'withval' is also a wise choice.
>
> Just a few queries below:
>
>
>
>     ?AC_ARG_WITH([expect],
>     ? ?[AC_HELP_STRING([--with-expect],
>     -? ? [have the Tcl/expect library (default=yes)])],
>     -? [with_expect=yes],
>     +? ? [have the Tcl/expect library])],
>     +? [with_expect=$withval],
>     ?[with_expect=no]
>
>
> From the original intention, it likely to set yes as the default, so 
> maybe the?[action-if-not-given] should as ?[with_expect=yes]?
Maybe, but I did not want to change the current behavior here. This 
should be done in another patch.
>
>
>     -# testcases/realtime requires bash and python.
>     -if test "x$with_bash" = xyes && test "x$with_python" = xyes; then
>     -? ? AC_ARG_WITH([realtime-testsuite],
>     -? ? ? [AC_HELP_STRING([--with-realtime-testsuite],
>     -? ? ? ? [compile and install the realtime testsuite (default=no)])],
>     -? ? ? [with_realtime_testsuite=yes]
>     -? ? )
>     -fi
>     +# TODO: testcases/realtime requires bash and python.
>
>
> Why remove the judgment?of bash/python here?
It simply does not work as intended. See last part of my patch description:
Defining AC_ARG_WITH within an if to express dependencies does not work.
./configure --with-realtime-testsuite set with_realtime_testsuite=yes,
even if with_bash=no or with_python=no. The check is removed completely.

I though removing it is better than leaving something that does nothing 
anyway
>
J?rg

  reply	other threads:[~2019-11-14  6:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-13 10:41 [LTP] [PATCH] configure.ac: Fix --with* options Joerg Vehlow
2019-11-13 16:02 ` Petr Vorel
2019-11-14  3:24 ` Li Wang
2019-11-14  6:31   ` Joerg Vehlow [this message]
2019-11-14  7:59     ` Li Wang
2019-11-14  8:09       ` Joerg Vehlow
2019-11-14  8:36         ` Li Wang
2019-11-18  6:16           ` Petr Vorel
2019-11-18  6:38             ` Li Wang
2019-11-18  6:40             ` Joerg Vehlow
2019-11-18  8:59               ` Petr Vorel
2019-11-18 20:41     ` Petr Vorel

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=e506bf38-f1d9-6f9e-e4cd-6edf24f74cd9@jv-coder.de \
    --to=lkml@jv-coder.de \
    --cc=ltp@lists.linux.it \
    /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.