I make heavy use of AM_CONDITIONAL in my Makefile.ams, mainly for conditional compiliation of stuff. This now works really well with automake 1.5 (it required nasty hacks with 1.4).
My question is, although I use if CONDITIONAL FOO else BAR endif in Makefile.am, and this becomes @CONDITIONAL_TRUE@FOO @CONDITIONAL_FALSE@BAR in Makefile.in, is it safe to use this format in my own .in files (e.g. po/POTFILES.in), or will the format used for the conditionals in .in files change at a future date? What I need to do is have lines conditionally included, as some are conditionally distributed. @GIMP_SOURCE_FALSE@# CUPS sources @GIMP_SOURCE_FALSE@src/cups/genppd.c @GIMP_SOURCE_FALSE@# Foomatic-related sources @GIMP_SOURCE_FALSE@src/foomatic/printer_options.c or do they need a preceding _TRUE line to match each false one? Also, would it be possible in the future to allow the following expansion by automake?: if COND FOO BAR BAZ else BAD endif and output the following: @COND_TRUE@FOO @COND_TRUE@BAR @COND_TRUE@BAZ @COND_FALSE@BAD which would enable multiple lines to be enclosed within conditionals, and therefore whole rules can be made conditional (it is currently possible to wrap just the target:deps line in a conditional, but this breaks non-GNU makes, which panic on seeing commands in the middle of nowhere). Being able to use 'ifndef' would also be another nice addition, or has this already been done (I possibly remember this being mentioned). Regards, Roger -- Roger Leigh ** Registration Number: 151826, http://counter.li.org ** Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/ GPG Public Key: 0x25BFB848 available on public keyservers
msg04533/pgp00000.pgp
Description: PGP signature