0

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.

gifnoc-gkp
  • 1,506
  • 1
  • 8
  • 17
rkb
  • 10,933
  • 22
  • 76
  • 103

1 Answers1

1

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
Tom Tromey
  • 21,507
  • 2
  • 45
  • 63