78 |
tmp1=`uname`"_"`uname -m` |
tmp1=`uname`"_"`uname -m` |
79 |
tmp2=`echo $tmp1 | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
tmp2=`echo $tmp1 | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
80 |
tmp3=`echo $tmp2 | sed -e 's/power macintosh/ppc/'` |
tmp3=`echo $tmp2 | sed -e 's/power macintosh/ppc/'` |
81 |
PLATFORM=`echo $tmp3 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'` |
tmp1=`echo $tmp3 | sed -e 's|x86_64|amd64|'` |
82 |
|
tmp2=`echo $tmp1 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'` |
83 |
|
PLATFORM=$tmp2 |
84 |
OFLIST=`(cd $ROOTDIR/tools/build_options; ls | grep "^$PLATFORM")` |
OFLIST=`(cd $ROOTDIR/tools/build_options; ls | grep "^$PLATFORM")` |
85 |
echo " The platform appears to be: $PLATFORM" |
echo " The platform appears to be: $PLATFORM" |
86 |
|
|
478 |
TOOLSDIR= |
TOOLSDIR= |
479 |
SOURCEDIRS= |
SOURCEDIRS= |
480 |
INCLUDEDIRS= |
INCLUDEDIRS= |
481 |
STANDARDDIRS= |
STANDARDDIRS="USE_THE_DEFAULT" |
482 |
|
|
483 |
PWD=`pwd` |
PWD=`pwd` |
484 |
MAKE=make |
MAKE=make |
962 |
fi |
fi |
963 |
fi |
fi |
964 |
|
|
965 |
|
#same for exch2 |
966 |
|
if test -r $ROOTDIR"/pkg/exch2/Makefile" ; then |
967 |
|
echo " Making source files in exch2 from templates" |
968 |
|
( cd $ROOTDIR"/pkg/exch2/" && $MAKE ) > make_exch2.errors 2>&1 |
969 |
|
RETVAL=$? |
970 |
|
if test "x${RETVAL}" = x0 ; then |
971 |
|
rm -f make_exch2.errors |
972 |
|
else |
973 |
|
echo "Error: problem encountered while building source files in exch2:" |
974 |
|
cat make_exch2.errors |
975 |
|
exit 1 |
976 |
|
fi |
977 |
|
fi |
978 |
|
|
979 |
printf "\n=== Determining package settings ===\n" |
printf "\n=== Determining package settings ===\n" |
980 |
if test "x${PDEPEND}" = x ; then |
if test "x${PDEPEND}" = x ; then |
981 |
tmp=$ROOTDIR"/pkg/pkg_depend" |
tmp=$ROOTDIR"/pkg/pkg_depend" |
1203 |
|
|
1204 |
echo " Adding STANDARDDIRS" |
echo " Adding STANDARDDIRS" |
1205 |
BUILDDIR=${BUILDDIR:-.} |
BUILDDIR=${BUILDDIR:-.} |
1206 |
if test "x$STANDARDDIRS" = x ; then |
if test "x$STANDARDDIRS" = xUSE_THE_DEFAULT ; then |
1207 |
STANDARDDIRS="eesupp model" |
STANDARDDIRS="eesupp model" |
1208 |
fi |
fi |
1209 |
for d in $STANDARDDIRS ; do |
if test "x$STANDARDDIRS" != x ; then |
1210 |
adr="$ROOTDIR/$d/src" |
for d in $STANDARDDIRS ; do |
1211 |
if test ! -d $adr ; then |
adr="$ROOTDIR/$d/src" |
1212 |
echo "Error: directory $adr not found -- please check that ROOTDIR=\"$ROOTDIR\"" |
if test ! -d $adr ; then |
1213 |
echo " is correct and that you correctly specified the STANDARDDIRS option" |
echo "Error: directory $adr not found -- please check that ROOTDIR=\"$ROOTDIR\"" |
1214 |
exit 1 |
echo " is correct and that you correctly specified the STANDARDDIRS option" |
1215 |
else |
exit 1 |
1216 |
SOURCEDIRS="$SOURCEDIRS $adr" |
else |
1217 |
fi |
SOURCEDIRS="$SOURCEDIRS $adr" |
1218 |
adr="$ROOTDIR/$d/inc" |
fi |
1219 |
if test ! -d $adr ; then |
adr="$ROOTDIR/$d/inc" |
1220 |
echo "Error: directory $adr not found -- please check that ROOTDIR=\"$ROOTDIR\"" |
if test ! -d $adr ; then |
1221 |
echo " is correct and that you correctly specified the STANDARDDIRS option" |
echo "Error: directory $adr not found -- please check that ROOTDIR=\"$ROOTDIR\"" |
1222 |
exit 1 |
echo " is correct and that you correctly specified the STANDARDDIRS option" |
1223 |
else |
exit 1 |
1224 |
INCLUDEDIRS="$INCLUDEDIRS $adr" |
else |
1225 |
fi |
INCLUDEDIRS="$INCLUDEDIRS $adr" |
1226 |
done |
fi |
1227 |
|
done |
1228 |
|
fi |
1229 |
|
|
1230 |
echo " Searching for *OPTIONS.h files in order to warn about the presence" |
echo " Searching for *OPTIONS.h files in order to warn about the presence" |
1231 |
echo " of \"#define \"-type statements that are no longer allowed:" |
echo " of \"#define \"-type statements that are no longer allowed:" |