I want my code to compile with the Intel compiler(s) or with gcc/g++ depending on a configure argument. Is this possible? What do I need to put in my configure.ac and Makefile.am files to make this happen?
I would do this:
AC_PROG_CC([icc gcc])
This will look for the compilers in the order specified, unless overridden with an argument to ./configure
$ ./confgure CC=gcc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With