Reputation: 11231
I am using automake for my project. I have gcc 4.2 installed and there is a soft link to gcc-4.2 as gcc. I also installed gcc 4.8 at some other location and now I want my project to use gcc 4.8 from this location. I do not want to change the existing soft link to gcc. So is there any way to do that in configure.ac file.
Upvotes: 0
Views: 207
Reputation: 22529
Normally this is not something you do in configure. configure is about portability, and your problem is different: customizing a build to your particular machine.
Instead the problem is typically solved when running configure:
./configure CC=/path/to/other/gcc
Upvotes: 1