[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Protux-devel] getting installation dir from autostuff
From: |
Luciano Giordana |
Subject: |
Re: [Protux-devel] getting installation dir from autostuff |
Date: |
Mon, 9 Dec 2002 09:38:38 +0000 |
User-agent: |
KMail/1.4.3 |
It is working fine,
but I had to change in configure.in file from
AC_DEFINE_UNQUOTED(PROTUX_PREFIX,${prefix})
to
AC_DEFINE_UNQUOTED(PROTUX_PREFIX,"${prefix}")
otherwise I could not use this macro to define a QString in GlobalProperties.hh
need some more tests, but I believe it is working
thanks Tapio and Martin :-)
On Monday 09 December 2002 09:26 am, tapio laxström wrote:
> Luciano Giordana wrote:
> > do you have some tip on how to get the installation dir from autostuff
> > from withing the code ? something like, QString p = getenv("INSTALLPATH")
> > ?
> >
> > I need this to release 0.16.0pre1
>
> Allright, I found the solution (and make changes to protux/libmustux):
> 1) we need to create acconfig.h file on main level with following:
>
> ---clip---
> /*Define protux prefix*/
> #undef PROTUX_PREFIX
> ---clip---
>
> 2) then we have to add to configure.in (after the default prefix
> defination, so that there will allways be something)
>
> ---clip---
> AC_DEFINE_UNQUOTED(PROTUX_PREFIX,${prefix})
> ---clip---
>
> Now when 'make -f admin/Makefile.common' is executed it automaticly
> reruns autoheader, which recreates config.h.in-file with PROTUX_PREFIX
> defination, which is filled up in config.h when ./configure is executed.
>
> simple ;)
>
> Now when PROTUX_PREFIX is needed (and MUSTUX_PREFIX in libmustux),
> simply add '#include <config.h>' to your source file and there will be
> define clause with right path.
--
Luciano Giordana - Musician - Certified Java/GNU C++ Developer - Free Software
Evangelist
http://www.groselhalight.com/giordana
Project Protux : Free Professional Audio Tools for GNU/Linux
http://www.freesoftware.fsf.org/protux
-- Once Palladium is up and running , I will become a hacker --
Re: [Protux-devel] getting installation dir from autostuff, Martin Herren, 2002/12/08
Re: [Protux-devel] getting installation dir from autostuff, tapio laxström, 2002/12/09