3 # Do a build using the IRIX TOOLROOT
4 # Use "-f" to force a configure.
6 # Copyright (c) 2004 Silicon Graphics, Inc. All Rights Reserved.
8 # This program is free software; you can redistribute it and/or modify it
9 # under the terms of version 2 of the GNU General Public License as
10 # published by the Free Software Foundation.
12 # This program is distributed in the hope that it would be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 # Further, this software is distributed without any warranty that it is
17 # free of the rightful claim of any third person regarding infringement
18 # or the like. Any license provided herein, whether implied or
19 # otherwise, applies only to this software file. Patent licenses, if
20 # any, provided herein do not apply to combinations of this program with
21 # other software, or any other product whatsoever.
23 # You should have received a copy of the GNU General Public License along
24 # with this program; if not, write the Free Software Foundation, Inc., 59
25 # Temple Place - Suite 330, Boston MA 02111-1307, USA.
27 # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
28 # Mountain View, CA 94043, or:
32 # For further information regarding this notice, see:
34 # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
38 # check have root/toolroot set
40 if [ -z "$TOOLROOT" ]; then
41 echo "TOOLROOT needs to be set to a populated IRIX toolroot"
44 if [ -z "$ROOT" ]; then
45 echo "ROOT needs to be set to a populated IRIX root"
51 fw_bin=$TOOLROOT/usr/freeware/bin
52 fw_tools=$TOOLROOT/usr/fw_tools
53 fw_share=$ROOT/usr/freeware/share
54 irix_bin=$TOOLROOT/usr/bin
57 export AC_MACRODIR=$fw_share/autoconf
58 export M4=$irix_bin/gnum4
59 export CC=$irix_bin/cc
60 export LIBTOOL=$fw_bin/libtool
61 export MAKE=$fw_tools/gmake
62 export AWK=$irix_bin/nawk
64 # check all tools/files are in root/toolroot that we need
65 FILES="$AC_MACRODIR $M4 $CC $LIBTOOL $MAKE $fw_bin/aclocal $fw_bin/autoheader $fw_bin/autoconf"
68 echo "file $f not found in ROOT/TOOLROOT"
74 # force a full configure
76 if [ $1 = "-f" ]; then
77 rm -f configure include/builddefs
82 # --- do all the configure stuff using the toolroot paths ---
84 # aclocal.m4 is actually checked in - probably won't recreate it often
85 if [ ! -e aclocal.m4 ]; then
87 $fw_bin/aclocal --acdir=m4 --output=aclocal.m4
91 if [ ! -e ./configure ]; then
98 if [ ! -e include/builddefs ]; then
104 # Now call gmake with any args we were given