On 9 Dec 1999, Daniel Pittman <daniel(a)danann.net> wrote:
On 08 Dec 1999, Jan Vroonhof <vroonhof(a)math.ethz.ch> wrote:
> Daniel Pittman <daniel(a)danann.net> writes:
>
>> Right while I was in the middle of hacking up the configure stuff as
>> well in an effort to fix the Athena3D lossage[1][2].
>
> Yippee!
[...]
Right. Currently you can select the both `athena` and `athena3d' when
selecting the type of widgets, scrollbars and dialogs. Configure then
does a bit of magic to try and get the right library/header combination.
In place of this, I propose:
--with-widgets and friends now take only `athena' as an argument. This
specifies that an Athena widget set is desired, but not which one.
(Eventually--backward compatibility notes below)
Configure looks for all the Athena libraries and headers, working out
which ones are Athena and which ones are Athena3D. This bit is already
working on my box. :)
The option `--with-athena' is available to specify the preferred Athena
widget set. This takes a range of values such as `flat' or `3d' or
`next' that specify what libraries to prefer.
Without this option being specified, the user gets libXaw.so preferred,
with the flat or 3d headers according to the 3d-ness of libXaw.so. This
retains the current behavior of `--with-widgets=athena' -- no surprises
to people who don't pay attention.
In this vein, `--with-widgets=athena3d' would be the same as the new
`--with-athena=3d' and `--with-widgets=athena' for backward
compatibility.
Finally, for the developers, we spit out the following values:
HAVE_ATHENA_HEADER_PATH=X11/Xaw (or X11/Xaw3d or whatever is the right
path)
HAVE_ATHENA_3D=yes (if and only if the chosen Athena is a 3D Athena,
else undefined)
HAVE_ATHENA_VARIANT=chosen variant (flat or 3d or next...)
We also add the relevant Athena -l... to the link settings.
The only real option I can think of aside from this is to clean up the
current `--with-widgets=athena(3d)?' stuff, then add `widgets=nextaw'
(since that's why I started this thang :)
That seems ugly if someone wants to use Xaw95 or XawXpm or something
though. Lots and lots of options.
Daniel
--
Quid sit futurem cras fuge quaerere
-- Horace