[Top][All Lists]

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

Changing prefix for recursive autoconf subprojects

From: Michael Johnson
Subject: Changing prefix for recursive autoconf subprojects
Date: Thu, 28 Jan 2010 11:29:34 -0500

Hello autoconf gurus,

I am wondering if there is a way to modify the prefix passed down in a recursive autoconf which uses the AC_CONFIG_SUBDIRS to recurse into subprojects.

Situation: I have project A which has two subprojects B and C (which also contain others subprojects, and A may or may not be itself a subproject of Z, but I don't think this is relevant).

Problem: I need the recursive 'make install' on project B to install into the prefix dir passed down by A, but I need the recursive 'make install' on C to install into a subdirectory of A's prefix. To be concrete, if $prefix is "/usr/local" I want B to install into "/usr/ local" but I need subproject C to install into "/usr/local/foo". The reason is to avoid overwriting a potential existing installation of the subproject C that may have been installed previously since we modified the source. Unfortunately, we cannot make C a separate project for dependency reasons.

Is there a way to append a subdirectory to the prefix passed down to one subproject but not the other with autoconf? Or is there perhaps another way to do this that does not use autoconf?

Thank you for your time and any help on this problem!


Michael Johnson <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]