Re: [Re: [gdome]AM_PATH_GDOME?]



> On 12 Jun 2001, Murray Cumming wrote:
> 
> > Does GDome have any system which can provide the necessary CGLAGS and
LIBS
> > stuff at configure time?

Paolo Casarini <casarini CS UniBO IT> wrote:
> This question is a good candidate for a FAQ on Gdome2: such information
> are provided by the shell script gdome-config that you can find in the
> $prefix/bin directory (es: /usr/local/bin).
> 
> I try to make an example on what you have to write in your configure.in to
> check for a specific version of Gdome2:
> ...
> $PACKAGE=myapp
> ...
> dnl
> dnl find libgdome
> dnl
> GDOME_CONFIG="gdome-config"
> GDOME_MIN_VERSION=0.6.8
> AC_MSG_CHECKING(for Gdome2 library >= $GDOME_MIN_VERSION) 
> if ! $GDOME_CONFIG --version > /dev/null 2>&1
> then
> 	AC_MSG_ERROR(Could not find Gdome2 anywhere (see config.log for
> details).)
> fi
> 
> dnl
> dnl test version and init our variables
> dnl
> vers=`$GDOME_CONFIG --version | awk -F. '{ printf "%d", ($1 * 1000 + $2) *
> 1000 + $3;}'`
> minvers=`echo $GDOME_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 +
> $2) * 1000 + $3;}'`
> if test "$vers" -ge "$minvers"
> then
>         GDOME_LIBS="`$GDOME_CONFIG --libs`"
>         GDOME_CFLAGS="`$GDOME_CONFIG --cflags`"
>         AC_MSG_RESULT(found)
> else
>         AC_MSG_ERROR(You need at least Gdome2 $GDOME_MIN_VERSION for this
> version of $PACKAGE)
> fi
> ...
> 
> This should be enough... 
> 
> Does sombody have any suggestions?
> 
> > Do you have any external examples - I mean separate
> > packages that use GDome?
> The best example I can suggest is the GtkMathView package on the Gnome
> CVS.
> 
> I hope I've answered to your question...

Thanks. I would have seen this but I mistakenly checked out gdome instead of
gdome2.

Gdome2 should be converted to the pkg-config system at some time.

Murray Cumming
murrayc usa net
www.murrayc.com

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]