[Mesa-dev] [PATCH] autoconf: add AM_PROG_CC_C_O

Dan Nicholson dbn.lists at gmail.com
Fri Apr 13 13:25:42 PDT 2012


On 4/13/12, Olivier Galibert <galibert at pobox.com> wrote:
> On Fri, Apr 13, 2012 at 11:06:18AM -0700, Ian Romanick wrote:
>> On 04/13/2012 08:47 AM, nobled wrote:
>> > Prevents this error with Automake 1.9:
>> >
>> > src/gallium/drivers/Makefile.am: C objects in subdir but
>> > `AM_PROG_CC_C_O' not in `configure.ac'
>> > autoreconf: automake failed with exit status: 1
>>
>> What the heck is the difference between AM_PROG_CC_C_0 and AC_PROG_CC?
>> Are both really necessary?  Seems like... madness.
>
> Isn't AM_PROG_CC_C_O the test whether the compiler can do both -c and
> -o in the same command line (w.r.t -c only + mv which was needed for
> some stupid compilers)?

Yeah. If you have objects in subdirs, you either have to use -o to
send the objects there or automake has to use the compile script to do
it for you. It would be nice if it added this for you when you used
subdir-objects, though...

--
Dan


More information about the mesa-dev mailing list