From owner-freebsd-questions Mon Jun 19 9: 5:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hyperhost.net (hyperhost.net [207.159.132.249]) by hub.freebsd.org (Postfix) with ESMTP id 33D4637B952 for ; Mon, 19 Jun 2000 09:05:40 -0700 (PDT) (envelope-from patseal@hyperhost.net) Received: from foobar.foobar.eyep.net (postfix@p8.a8.du.radix.net [207.192.132.136]) by hyperhost.net (8.9.3/8.9.3) with ESMTP id MAA23308 for ; Mon, 19 Jun 2000 12:05:37 -0400 (EDT) Received: by foobar.foobar.eyep.net (Postfix, from userid 1000) id 1CF69138229; Mon, 19 Jun 2000 12:02:58 -0400 (EDT) Date: Mon, 19 Jun 2000 12:02:58 -0400 From: Patrick Seal To: freebsd-questions@FreeBSD.ORG Subject: Detecting FreeBSD in configure Message-ID: <20000619120257.A62714@hyperhost.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i X-Operating-System: FreeBSD foobar.foobar.eyep.net 4.0-STABLE FreeBSD 4.0-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What's the best way to detect FreeBSD in configure scripts? When compiling out of the port system I get: echo $host_os "freebsdelf4.0" When compiling using the port system I get: echo $host_os "freebsd4.0" Why does the port system change the $host_os? Is this the best way? if test "$host_os" = "freebsd4.0" -o "$host_os" = "freebsdelf4.0" Thanks, -- ------------------------------------ _____________________________________ Patrick Seal |"Microsoft isn't evil, they just make | really crappy operating systems." Hyperhost - http://www.hyperhost.net| -Linus Torvalds To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message