This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: AC_REPLACE_FUNCS
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: Bill Moseley <moseley at hank dot org>
- Cc: automake at gnu dot org
- Date: Sun, 06 Apr 2003 21:28:35 +0200
- Subject: Re: AC_REPLACE_FUNCS
- References: <Pine.LNX.4.10.10303262332330.13212-100000@mardy.hank.org>
>>> "Bill" == Bill Moseley <moseley at hank dot org> writes:
Bill> Along the same lines as conditinal linking, what would be
Bill> the recommended way to do AC_REPLACE_FUNCS() when
Bill> building multiple libraries?
Bill> For example:
Bill> AC_REPLACE_FUNCS(vsnprintf mkstemp)
Bill> but vsnprintf needs to be added to one library, and
Bill> mkstemp to another, so I can't use $(LTLIBOBJS) on both
Bill> libraries (which are both linked into the same
Bill> executable).
Then you shouldn't use AC_REPLACE_FUNCS, but a wrapper around
AC_CHECK_FUNC that updates your own (LT)LIBOBJS-like variable.
--
Alexandre Duret-Lutz