From: Simon Marchi <simark@simark.ca>
To: Philippe Blain <levraiphilippeblain@gmail.com>,
gdb-patches@sourceware.org
Subject: Re: [PATCH v2] gdb: add --with-curses to --configuration output
Date: Mon, 20 Feb 2023 12:08:27 -0500 [thread overview]
Message-ID: <7a7dbf0d-c6d6-22bc-5bb1-c671b7720424@simark.ca> (raw)
In-Reply-To: <20230211-configuration-show-curses-v2-1-a28c6ea6f00a@gmail.com>
> diff --git a/gdb/configure.ac b/gdb/configure.ac
> index 7c7bf88b3fb..6ad0f9d8815 100644
> --- a/gdb/configure.ac
> +++ b/gdb/configure.ac
> @@ -563,11 +563,11 @@ if test x"$prefer_curses" = xyes; then
> # search /usr/local/include, if ncurses is installed in /usr/local. A
> # default installation of ncurses on alpha*-dec-osf* will lead to such
> # a situation.
> - AC_SEARCH_LIBS(waddstr, [ncursesw ncurses cursesX curses])
> -
> - if test "$ac_cv_search_waddstr" != no; then
> - curses_found=yes
> - fi
> + AC_SEARCH_LIBS(waddstr, [ncursesw ncurses cursesX curses],
> + [curses_found=yes &&
> + AC_DEFINE([HAVE_LIBCURSES], [1],
> + [Define to 1 if curses is enabled.])
> + ])
I don't think the `&&` is needed, you can just put each action on its
own line. It becomes regular shell script in the end. I tried removing
it on my side, it seems to work fine. If that work for you too, I can
push the patch with that little change.
Simon
next prev parent reply other threads:[~2023-02-20 17:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-15 18:42 [PATCH] " Philippe Blain
2023-02-15 18:58 ` Simon Marchi
2023-02-15 19:54 ` Philippe Blain
2023-02-19 22:37 ` [PATCH v2] " Philippe Blain
2023-02-20 17:08 ` Simon Marchi [this message]
2023-02-21 12:52 ` Philippe Blain
2023-02-21 14:36 ` Simon Marchi
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=7a7dbf0d-c6d6-22bc-5bb1-c671b7720424@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=levraiphilippeblain@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).