From owner-freebsd-current Tue Sep 1 17:05:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA22745 for freebsd-current-outgoing; Tue, 1 Sep 1998 17:05:24 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from shire.domestic.de (kuebart.stuttgart.netsurf.de [194.233.216.182]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA22706 for ; Tue, 1 Sep 1998 17:05:17 -0700 (PDT) (envelope-from joki@kuebart.stuttgart.netsurf.de) Received: (from joki@localhost) by shire.domestic.de (8.8.8/8.8.7) id CAA13058; Wed, 2 Sep 1998 02:03:34 +0200 (CEST) (envelope-from joki) From: Joachim Kuebart Message-Id: <199809020003.CAA13058@shire.domestic.de> Subject: Re: XFree86 and ELF In-Reply-To: <19980902004140.A17784@keltia.freenix.fr> from Ollivier Robert at "Sep 2, 98 00:41:40 am" To: roberto@keltia.freenix.fr (Ollivier Robert) Date: Wed, 2 Sep 1998 02:03:34 +0200 (CEST) Cc: freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ollivier Robert wrote: > Anyway, when you run an ELF > FreeBSD, __ELF__ is defined by the preprocessor... No, __ELF__ is defined by the compiler front end (${CC}). Calling cpp on its own provides no way to know what environment we are in. Satoshi Asami wrote: > REL!= sysctl -n kern.osreldate > .if ${REL} >= 300004 > OBJFORMAT!= objformat > .if ${OBJFORMAT} == elf > ELF= yes > .endif > .endif We can code in scripts/configure: test `sysctl -n kern.osreldate` -ge 300004 && test `objformat` = elf && echo '#define UseElfFormat YES' >> $F No patch since I already deleted my work source :-( and I'm out of time. Maybe tomorrow. cu Jo --------------------------------------------------------------------- FreeBSD: The Power to Serve Joachim Kuebart Tel: +49 711 653706 Replicants are like any other machine -- Germany they're either a benefit or a hazard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message