compile: avoid AC_PROG_CC messy rewrite
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 May 2013 09:03:41 +0000 (11:03 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 May 2013 09:44:23 +0000 (11:44 +0200)
commit32eb770b73903a6b09216709790a093b33afff8d
tree288bd9df18ea250f72f3353883d7653173a3b487
parentf233bf8f277775f37b7dd4559af237d129231cbb
compile: avoid AC_PROG_CC messy rewrite

Instead, add an hook to AC_OUTPUT to have AM_PROG_CC_C_O invoked
automatically.

See also the long-winded discussion about automake bug#13378.

* m4/minuso.m4 (AM_PROG_CC_C_O): Bring back the old implementation,
from commit v1.13.1-55-g1ab8fb6.
* m4/init.m4 (AC_PROG_CC): Remove this horrible, hacky re-write.
* (AM_INIT_AUTOMAKE): Arrange for AM_PROG_CC_C_O to be called if
necessary.
* t/am-prog-cc-c-o.sh: Adjust to avoid spurious failure.
* t/subobj.sh: Likewise.

Suggested-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
m4/init.m4
m4/minuso.m4
t/add-missing.tap
t/am-prog-cc-c-o.sh
t/subobj.sh