On Thu, Jun 7, 2012 at 12:35 PM, Vincent Torri <vincent.to...@gmail.com> wrote: > Hey > > suppose that my program is composed of 2 files f1.c and f2.c. f1.c is > written in C89 and f2.c in C99. I would like that f1.c is compiled > with a C89 compiler and f2.c is compiled with a C99 compiler. > > How can I achieve that in Makefile.am ? > > Also, in configure.ac, which macro should I use ? AC_PROG_CC ? > AC_PROG_CC_C99 ? > > thank you > > Vincent Torri >
Can you just pass different CFLAGS, -std=c89, -std=c99?