Re: [Patch] correctly configure wcwidth in readline

Andreas Schwab
2003-02-26T21:26:21Z

Daniel Jacobowitz <drow@mvista.com> writes:

|> On Wed, Feb 26, 2003 at 12:44:22PM -0500, Kris Warkentin wrote:
|> > Here's what seems to me to be a more elegant solution. In aclocal.m4, I
|> > just define the obj as wcwidth.o and then the Makefile will either have it
|> > or not.
|> >
|> > cheers,
|>
|> > < AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH))
|> > ---
|> > > AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH),
|> > AC_SUBST(WCWIDTH_OBJ,wcwidth.o))
|>
|> [Always use unified or context diffs, please]
|>
|> Did you try this on a host with wcwidth? I don't think it'll work
|> right; I have the feeling that a conditional AC_SUBST can leave
|> @WCWIDTH_OBJ@ in the makefile.

AC_SUBST is a kind of declaration, it's mere existence (as long as it is
expanded by autoconf) causes the variable to be substituted. Only the
assignment of the value happens at runtime.

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 NÃ¼rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."