This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AC_REPLACE_FUNCS


>>> "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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]