[postgis-devel] GUI Version 0

Paul Ramsey pramsey at cleverelephant.ca
Tue Jan 20 08:52:12 PST 2009


For all my hunting the internet and searching Google Code for an
appropriate m4 to do GTK checking, it never once entered my pea-brain
to actually look in the GTK source itself! I've taken a macro from
there, it looks like it just does a more thorough job using
pkg-config.

However, the hard-coded paths for OS/X are going to have to remain
until there is some more subtle macro script available to find them.
For unknown reasons, those frameworks don't include a pkg-config, so
the same tricks don't work with them.

P.

On Tue, Jan 20, 2009 at 1:47 AM, Mark Cave-Ayland
<mark.cave-ayland at siriusit.co.uk> wrote:
> Paul Ramsey wrote:
>
>> Folks,
>>
>> I've committed the first draft of the GUI. I did the autoconf work for
>> Linux and OS/X to handle GTK, which is either (a) easy or (b) completely
>> impossible. I opted for (a), which imposes a requirement of having
>> 'pkg-config' on your system, which most Gnome-enabled systems have.  For
>> GTK2/GLIB2 it seems pretty standard, but I look forward to hearing from you
>> in MinGw world. Of course, even with that standardization, I needed to
>> special case OS/X, since I am using the native GTK build, which does *not*
>> include pkg-config.
>>
>> The GUI is on its own build target 'gui', which is enabled if you specify
>> --with-gui and the dependencies are all found.
>>
>> Paul (making ugly code uglier)
>
> Yeah, a quick glance at the autoconf code shows it needs some work. The
> biggest problem is that hard-coding paths in autoconf scripts should be an
> absolute no-no for C code, since the shell and the compiler both have
> different ideas of where to find things.
>
> According to the documentation, GTK comes with a macro called AM_PATH_GTK
> which can be used to find the headers and libraries used for GTK. I would
> suggest installing it into the macros/ directory and using it in
> configure.ac instead. Chances are that you will find it "just works".
>
>
> ATB,
>
> Mark.
>
> --
> Mark Cave-Ayland
> Sirius Corporation - The Open Source Experts
> http://www.siriusit.co.uk
> T: +44 870 608 0063
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list