Changing prefix for recursive autoconf subprojects

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

 



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!

Regards,
Michael

-----------------------------------------------------------------
Michael Johnson <m.johnson@xxxxxxxxxxx>
OPeNDAP, Inc.






_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux