Re: problem with ifelse

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Vincent Torri on 3/6/2009 7:30 AM:
> As the value of want_ecore_win32 changes acoording to the host, i think
> I'll have to use AS_IF or if / then /else. Which one is better ?

AS_IF is nicer if you invoke other autoconf macros within the body,
because it handles hoisting prerequisites prior to the if statement.  In
other words:

if ...; then
  MACRO_WITH_PREREQ
fi
=>
if ...
  prereq
  macro_body
fi

which is a bug, if the rest of your script depends on prereq having run
regardless of whether macro_body was run (and that is often the case).  On
the other hand,

AS_IF([...], [MACRO_WITH_PREREQ])
=>
prereq
if ...
  macro_body
fi

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@xxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmxRB4ACgkQ84KuGfSFAYBHBgCfVldLcIvrllZanOgwHyEvyNNF
O8oAnRT1GK0WCvJZoGoxk/9/SROmGbU1
=Zlyt
-----END PGP SIGNATURE-----


_______________________________________________
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