Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi Wols,

On Mon, 2010-10-25 at 18:50 +0100, Wols Lists wrote:
So. I'll try and improve my autoconf-fu :-)

        cool :-) thanks.

First thing to check - I presume if no config is specified then the
variables get set to null, so I need to check for three states ie yes,
no and null.

        Right - I think if it is not set; you can specify the value in the
macro thus:

AC_ARG_ENABLE(mozilla,
[  --disable-mozilla       OO.o usually includes a strangely hacked up mozilla
                          binary for your platform, to build without this
                          version, use this option.
],,enable_mozilla="yes")

        in this case you'd want enable_foo="auto" or something, and then detect
and work out what auto should be for that system.

If no, it gets left out.
If yes, it gets compiled in.
If null, it is autodetected and compiled if it's there.

        Correct - that's what we want ;-)

So if it's yes but not there, then die like at present :-)

        Quite ! :-) that is important for packagers to stay sane.

I will accept the mission :-) I may be a long time ... (and I'll
try and document what I learn on the wiki build page :-)

        Good work !

        Many thanks,

                Michael.

-- 
 michael.meeks@novell.com  <><, Pseudo Engineer, itinerant idiot



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.