On Tue, 27 Jul 1999, Thilo Manske wrote:
: if echo __ELF__ | ${CC} -E - | grep -q __ELF__; then
: # ELF
: else
: # a.out
: fi
:
: This is not my idea, it's from the patches for apache in the package tree.
It's actually backwards. If the "grep -q" returns true, it's an a.out
system (since cpp did *not* replace __ELF__ with 1).
--
-- Todd Vierling (tv(at)pobox(dot)com)