Re: Conditional Configuration

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

 



* Paulo J. Matos wrote on Thu, May 25, 2006 at 08:02:26PM CEST:
> On 25/05/06, Ralf Wildenhues <Ralf.Wildenhues@xxxxxx> wrote:
> >
> >if test "${enable_static_modules}" = "no"; then
> >  :
> >  AC_LIBTOOL_DLOPEN
> >fi

> Nice. :-)
> AS_IF([test "${enable_static_modules}" = "no"], [: AC_LIBTOOL_DLOPEN])
> Works for some reason... without : doesn't!

Please don't write it that way.  If we ever decide that
AC_LIBTOOL_DLOPEN should expand to shell code (and not just change some
state at M4 time, which then induces a shell snippet elsewhere), then
the above could silently fail, while mine wouldn't.  You could write
  AS_IF([test "${enable_static_modules}" = "no"], [:; AC_LIBTOOL_DLOPEN])

Cheers,
Ralf


_______________________________________________
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