Commit 5ebf84d8 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Take an optional argument: the name of the compiler to use.

parent b0027d1d
......@@ -38,6 +38,13 @@
# lyskom-server CVS module will trigger the creation of a source
# distribution.
compiler=default
if [ $# -gt 1 ]
then
compiler="$1"
shift
fi
VERS=`echo lyskom-server*tar.gz|sed s/lyskom-server-//|sed s/.tar.gz//`
BASE=lyskom-server-$VERS
......@@ -81,7 +88,12 @@ dotask() {
pfx=`pwd`/pfx
status=good
cfgargs=
if test $compiler = default
then
cfgargs=
else
cfgargs=CC="$compiler"
fi
case `uname -n` in
aristocat.lysator.liu.se)
......@@ -93,7 +105,7 @@ case `uname -n` in
# We need the new makeinfo from /sw/local/bin,
# and want runtest from /sw/dejagnu.
PATH=$PATH:/sw/dejagnu/bin
cfgargs="MAKEINFO=/sw/local/bin/makeinfo"
cfgargs="$cfgargs MAKEINFO=/sw/local/bin/makeinfo"
timeecho adjusting path to $PATH for asmodean
;;
moghedien.lysator.liu.se)
......@@ -103,7 +115,7 @@ case `uname -n` in
;;
moria)
# Do more debugging on moria.
cfgargs="--with-valgrind --with-debug-calls --disable-malloc-guards"
cfgargs="$cfgargs --with-valgrind --with-debug-calls --disable-malloc-guards"
;;
esac
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment