Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331809 - Using absolute paths for configure tool directory
Summary: Using absolute paths for configure tool directory
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Autotools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Jeff Johnston CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-03 14:37 EST by Jon Beniston CLA
Modified: 2012-07-10 18:23 EDT (History)
0 users

See Also:


Attachments
Patch to support absolute paths to configure (964 bytes, patch)
2010-12-03 14:38 EST, Jon Beniston CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Beniston CLA 2010-12-03 14:37:21 EST
Build Identifier: 

It seems that autotools doesn't support absolute paths for the configure tool directory option (This is handy on Windows systems, because you can't get relative paths to other drives as far as I'm aware).

Simple patch attached, which checks if the path is absolute. If it is, it doesn't append it to the project directory.

(Maybe this should be applied to getAutogenPath() as well as getConfigurePath()? Not sure as I've only ever used the latter).



Reproducible: Always
Comment 1 Jon Beniston CLA 2010-12-03 14:38:01 EST
Created attachment 184502 [details]
Patch to support absolute paths to configure
Comment 2 Jeff Johnston CLA 2010-12-03 16:13:01 EST
(In reply to comment #0)
> Build Identifier: 
> 
> It seems that autotools doesn't support absolute paths for the configure tool
> directory option (This is handy on Windows systems, because you can't get
> relative paths to other drives as far as I'm aware).
> 
> Simple patch attached, which checks if the path is absolute. If it is, it
> doesn't append it to the project directory.
> 
> (Maybe this should be applied to getAutogenPath() as well as
> getConfigurePath()? Not sure as I've only ever used the latter).
> 
> 
> 
> Reproducible: Always

You will need to explain why you need to do this.

Why isn't the configure file for the project in the project itself?

The patch doesn't address the various other references to srcDir in the file (e.g. autogenPath and passed directly other places)
Comment 3 Jon Beniston CLA 2010-12-04 12:21:31 EST
I often do multiple builds of the same large source tree configured in different ways. (E.g. multiple builds of gcc targeting different architectures/cpu-variants. I'd rather have one source tree on disk, rather than copying 500MB+ for each build).

I guess the same patch could be applied to autogen path, but I didn't want touch something I haven't tried and am not familar with.
Comment 4 Jeff Johnston CLA 2010-12-06 12:20:10 EST
(In reply to comment #3)
> I often do multiple builds of the same large source tree configured in
> different ways. (E.g. multiple builds of gcc targeting different
> architectures/cpu-variants. I'd rather have one source tree on disk, rather
> than copying 500MB+ for each build).
> 
> I guess the same patch could be applied to autogen path, but I didn't want
> touch something I haven't tried and am not familar with.

This is already possible.  You simply add multiple configurations (one per architecture or configuration set-up) using the Manage Configurations button found on the top of the Autotools configure settings page.  Each configuration has its own settings, including the Autotools configure settings so you can specify a different --target, etc....

By default, the first build will end up in the top-level directory and every additional configuration will use the configuration name to form a build-directory.  So, you can easily keep track of which builds are for what platform by naming your configuration appropriately.

See the Autotools User Guide: http://wiki.eclipse.org/Linux_Tools_Project/Autotools/User_Guide and look under the Building section for some further help.
Comment 5 Alexander Kurtakov CLA 2012-04-11 17:48:27 EDT
Can we close this one now? Looks like Autotools had support for it.