summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-09-14 15:14:53 +0000
committerhans <hans@pkgsrc.org>2011-09-14 15:14:53 +0000
commit772457add36bdf965bf186de643bf07b5a40f356 (patch)
treec183ac885f2ecf00a399bbae1c34b6a22b05fdd7 /bootstrap/bootstrap
parent8a9bf2b043f5bf5437f634335c89fc75486967d4 (diff)
downloadpkgsrc-772457add36bdf965bf186de643bf07b5a40f356.tar.gz
Use more host tools on SunOS. Default to GNU tools when available.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap14
1 files changed, 11 insertions, 3 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 9252b3fbcc7..89b5bef9efe 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.169 2011/06/12 17:46:02 agc Exp $
+# $NetBSD: bootstrap,v 1.170 2011/09/14 15:14:53 hans Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -666,8 +666,16 @@ SunOS)
fi
root_group=root
need_bsd_install=yes
- need_awk=yes
- need_sed=yes
+ if [ -x "/usr/gnu/bin/awk" ]; then
+ need_awk=no
+ else
+ need_awk=yes
+ fi
+ if [ -x "/usr/gnu/bin/sed" ]; then
+ need_sed=no
+ else
+ need_sed=yes
+ fi
need_ksh=yes
set_opsys=no
groupsprog="/usr/xpg4/bin/id -gn"