Subject: Re: [HACKERS] Re: More on shared objects problem
To: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
From: Todd Vierling <tv@pobox.com>
List: current-users
Date: 07/27/1999 15:04:34
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@pobox.com)