74 |
echo |
echo |
75 |
HAVE_MPACK=f |
HAVE_MPACK=f |
76 |
fi |
fi |
|
printf "building mpack... " |
|
77 |
if test "x$CC" = x ; then |
if test "x$CC" = x ; then |
78 |
export CC=cc |
export CC=cc |
79 |
fi |
fi |
80 |
|
printf "building mpack (using CC=$CC)... " |
81 |
( cd $MPACKDIR && ./configure && $MAKE ) > tr_build_mpack.out 2>&1 |
( cd $MPACKDIR && ./configure && $MAKE ) > tr_build_mpack.out 2>&1 |
82 |
RETVAL=$? |
RETVAL=$? |
83 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
88 |
else |
else |
89 |
rm -f tr_build_mpack.out |
rm -f tr_build_mpack.out |
90 |
HAVE_MPACK=t |
HAVE_MPACK=t |
91 |
|
echo "OK" |
92 |
fi |
fi |
93 |
else |
else |
94 |
HAVE_MPACK=t |
HAVE_MPACK=t |
95 |
|
echo "done" |
96 |
fi |
fi |
|
echo "OK" |
|
97 |
} |
} |
98 |
|
|
99 |
testoutput_var() |
testoutput_var() |
626 |
{ |
{ |
627 |
# create codelet for comparing model output |
# create codelet for comparing model output |
628 |
|
|
629 |
printf "creating the comparison code... " |
printf "creating the comparison code (using CC=$CC)... " |
630 |
cat > tr_cmpnum.c <<EOF |
cat > tr_cmpnum.c <<EOF |
631 |
#include <stdio.h> |
#include <stdio.h> |
632 |
#include <math.h> |
#include <math.h> |
979 |
# create the FORTRAN comparison code |
# create the FORTRAN comparison code |
980 |
createcodelet |
createcodelet |
981 |
|
|
982 |
# build the mpack utility |
# build the mpack utility (if ADDRESSES = NONE, do it to test the build) |
983 |
if test "x$ADDRESSES" = xNONE -o "x$ADDRESSES" = x ; then |
if test "x$ADDRESSES" = x ; then |
984 |
echo "skipping mpack build" |
echo "skipping mpack build" |
985 |
else |
else |
986 |
build_mpack |
build_mpack |