Re: Automatic rebuilds, LIBS, and autoheader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello again,

On Thu, Jun 08, 2006 at 09:01:38PM +0200, Stepan Kasal wrote:
> On Tue, Jun 06, 2006 at 08:23:26PM -0700, Micah J. Cowan wrote:
> >   AC_CHECK_LIB(readline, readline,
> >         [AC_DEFINE(HAVE_LIBREADLINE, 1,
> >           [Define to 1 if you have the `readline' library (libreadline).])],
> >         [AC_MSG_WARN([Won't build pitchcalc])])

> AH_TEMPLATE([HAVE_LIBREADLINE], [Define to 1 if you have the
> 	`readline' library (libreadline).]
...
> m4_foreach([A_LIB], [readline, check, m], [AH_CHECK_LIB(A_LIB)])

actually, I'm afraid this was not the right answer.  If the only
modification which you need is to leave the value of LIBS untouched,
you can simply do this:

save_LIBS=$LIBS
AC_CHECK_LIB(readline, ...)
AC_CHECK_LIB(check, ...)
AC_CHECK_LIB(m, ...)
LIBS=save_LIBS

(Yes, the generated configure contins five redundant assignments, but
that really doesn't matter.  It is much more important that the code
does not rely on undocumented features.)

Have a nice day,
	Stepan


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux