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.me...@novell.com  <><, Pseudo Engineer, itinerant idiot


_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to