variables in configure arguments

Andreas Pakulat apaku at gmx.de
Sat Dec 15 20:10:03 GMT 2007


On 13.12.07 11:23:37, Jörg Becker wrote:
> Hello,
> 
> I have to install the targets in directories reflecting the build 
> configuration, host and compiler. To do so, I've defined --prefix in the 
> 'Project Options / Configure Options / Configure arguments'. It looks like 
> this:
> 
> --prefix=$_/../../..  --bindir=$_/../../../bin/`eval echo 
> Debug-$(uname -i)-gcc$(gcc -dumpversion)` --libdir=$_/../../../bin/`eval echo 
> Debug-$(uname -i)-gcc$(gcc -dumpversion)` --program-suffix=-`eval echo 
> Debug-$(uname -i)-gcc$(gcc -dumpversion)`
> 
> Since this is neither readable nor maintainable, I'm wondering if it
> is possible to define variables somewhere in kdevelop and use them, e.g. in 
> the 'Configure argument' or 'Environment Variables'?

I think waht you want isn't possible. Whatever is in the configure
argument edit is directly appended to the configure call. So only what
works from a shell when running configure works there as well.

Andreas

-- 
Next Friday will not be your lucky day.  As a matter of fact, you don't
have a lucky day this year.




More information about the KDevelop mailing list