Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 1998 01:27:54 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        joki@kuebart.stuttgart.netsurf.de (Joachim Kuebart)
Cc:        joki@shire.domestic.de, galatalt@stuy.edu, dfr@nlsystems.com, freebsd-current@FreeBSD.ORG
Subject:   Re: XFree86 and ELF
Message-ID:  <199809020127.SAA12927@usr01.primenet.com>
In-Reply-To: <199809011809.UAA16527@yacht.domestic.de> from "Joachim Kuebart" at Sep 1, 98 08:09:40 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> This is due to the fact that I am unaware of a portable way to check
> if we're on an ELF system. Bear in mind it might be a prehistoric
> -stable version, so it isn't just a question of `objformat`.

#!/bin/sh

echo "Is it ELF yet?"
file `which ld` | grep ELF >/dev/null 2>&1
if test "$?" = "0"
then
	echo "It's ELF, yet!"
else
	echo "No, not yet..."
fi



					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809020127.SAA12927>