View Full Version : [SOLVED] change compile options in program generated with automake

December 30th, 2008, 09:08 PM
I'me trying to compile and install a program.
This works the old way like

make install

This works with no problem,
but I want to change som compile options.

Like instead of using gcc I want to use icc,
but also the cflags cxxflags.

But what is the recommend way of changing this.
I can just do a search replace,
but I have a gut feeling theres a better way of doing this.

theres a hole lot of strange files like

ls config* Make*
config.log configure Makeconf.in Makefile.in Makefrag.cxx
config.site configure.ac Makefile Makefrag.cc Makefrag.m
config.status Makeconf Makefile.bak Makefrag.cc_lo

thanks in advance

I know I can change all the compile options, wich CC=icc and CXX=icpc,
but If I want to change the install dir,
I can do ./configure prefix=/dir/to/install.

So I guess theres a way to change the defaults,
or atleast get a list.

December 30th, 2008, 11:31 PM
Theres a file called config.site which apparently contains the stuff I was looking for.

also ./configure --help