xref: /csrg-svn/usr.sbin/amd/config/Configure (revision 61790)
144630Smckusick#!/bin/sh -
244630Smckusick#
344630Smckusick# Copyright (c) 1989 Jan-Simon Pendry
444630Smckusick# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
561780Sbostic# Copyright (c) 1989, 1993
661780Sbostic#	The Regents of the University of California.  All rights reserved.
744630Smckusick#
844630Smckusick# This code is derived from software contributed to Berkeley by
944630Smckusick# Jan-Simon Pendry at Imperial College, London.
1044630Smckusick#
1144630Smckusick# %sccs.include.redist.sh%
1244630Smckusick#
13*61790Sbostic#	@(#)Configure	8.1 (Berkeley) 06/06/93
1444630Smckusick#
1549685Spendry# $Id: Configure,v 5.2.1.2 91/05/07 22:20:26 jsp Alpha $
1649685Spendry#
1744630Smckusickecho "Making ./arch and ./os-type executable ..."
1844630Smckusickuntil chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done
1944630Smckusickecho "Checking ./arch and ./os-type ..."
2044630Smckusickecho ""
2144630Smckusickarch="`sh ./arch 2>/dev/null`"
2244630Smckusickos="`sh ./os-type 2>/dev/null`"
2344630Smckusickcase "$arch" in
2444630Smckusick"") echo "./arch doesn't produce an answer - please check it" >&2; exit 1;;
2544630Smckusickesac
2644630Smckusickcase "$os" in
2744630Smckusick"") echo "./os-type doesn't produce an answer - please check it" >&2; exit 1;;
2844630Smckusickesac
2944630Smckusickcat << %
3044630SmckusickThis machine appears to be a "$arch" running "$os".
3144630SmckusickIf that is correct just run make.
3244630SmckusickIf those are incorrect please edit ./arch and ./os-type
3344630Smckusick%
3444630Smckusickexit 0
35