From: Joel Brobecker <brobecker@gnat.com>
To: Mark Kettenis <kettenis@chello.nl>
Cc: cagney@gnu.org, gdb-patches@sources.redhat.com
Subject: Re: [RFA/RFC] (hppa/tui) Fix build failure due to missing wborder
Date: Thu, 26 Feb 2004 00:43:00 -0000 [thread overview]
Message-ID: <20040226004352.GA3425@gnat.com> (raw)
In-Reply-To: <200402252030.i1PKUEav041255@elgar.kettenis.dyndns.org>
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
> Except that AC_SEARCH_LIBS is clever enough itself. It first tries to
> find the function in the libraries already present.
>
> AC_SEARCH_LIBS (initscr, [ncurses ...]), [], [AC_MSG_WARN...])
> AC_SEARCH_LIBS (wborder, cur_clr, [], [AC_MSG_WARN...])
>
> Should do exactly what you want.
Thanks for the tip! I checked the following change in.
2004-02-25 J. Brobecker <brobecker@gnat.com>
* configure.in: Refine the previous change.
* configure: Regenerate.
Tested on hpux and x86-linux.
--
Joel
[-- Attachment #2: configure.in.diff --]
[-- Type: text/plain, Size: 1267 bytes --]
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.148
diff -u -p -r1.148 configure.in
--- configure.in 25 Feb 2004 20:09:46 -0000 1.148
+++ configure.in 26 Feb 2004 00:41:27 -0000
@@ -152,9 +152,8 @@ AC_SEARCH_LIBS(initscr, [ncurses Hcurses
# additional library. So if we did not find this function inside
# the curses library, try some alternate libraries we know might
# provide it.
-AC_CHECK_FUNC(wborder, [wborder_available=yes],
- [AC_SEARCH_LIBS(wborder, [cur_colr], [wborder_available=yes],
- [AC_MSG_WARN([no wborder function found])])])
+AC_SEARCH_LIBS(wborder, [cur_colr], [],
+ [AC_MSG_WARN([wborder function not found, tui will be disabled])])
# Enable TUI.
AC_ARG_ENABLE(tui,
@@ -167,7 +166,7 @@ AC_ARG_ENABLE(tui,
esac],enable_tui=yes)
if test x"$enable_tui" = xyes; then
if test -d $srcdir/tui; then
- if test "$ac_cv_search_initscr" != no -a "$wborder_available" = "yes"; then
+ if test "$ac_cv_search_initscr" != no -a "$ac_cv_search_wborder" != no; then
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
prev parent reply other threads:[~2004-02-26 0:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-23 22:03 Joel Brobecker
2004-02-24 23:34 ` Andrew Cagney
2004-02-25 1:18 ` Joel Brobecker
2004-02-25 2:09 ` Daniel Jacobowitz
2004-02-25 18:59 ` Joel Brobecker
2004-02-25 19:55 ` Andrew Cagney
2004-02-25 20:11 ` Joel Brobecker
2004-02-25 20:30 ` Mark Kettenis
2004-02-26 0:43 ` Joel Brobecker [this message]
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=20040226004352.GA3425@gnat.com \
--to=brobecker@gnat.com \
--cc=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@chello.nl \
/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