C compiler detection question

2018-07-19 Thread Sébastien Hinderer
Dear all, On Cygwin, I would like to slightly alter AC_PROG_CC's list of C compilers. What I would like is that it tries a few ones I could hardcode but then if they are not found that it falls back to its own list. I realise that I could hardcode the whole list with my compilers first but I

Detecting object file format

2018-07-19 Thread Sébastien Hinderer
Dear all, Sorry if the question is trivial. I am wondering how one should proceed to determine the object file format used on a target system in a configure.ac script? To be more precise: I am working on a project which tests this by trying to compile a C program that has a different behaviour