3 # GNU Mes --- Maxwell Equations of Software
4 # Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
6 # This file is part of GNU Mes.
8 # GNU Mes is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or (at
11 # your option) any later version.
13 # GNU Mes is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
23 abs_top_srcdir="@abs_top_srcdir@"
24 abs_top_builddir="@abs_top_builddir@"
25 prefix=${prefix-@prefix@}
26 VERSION=${VERSION-@VERSION@}
29 . ${srcdest}build-aux/config.sh
30 . ${srcdest}build-aux/trace.sh
32 MES_SEED=${MES_SEED-../mes-seed}
33 GUILE=${GUILE-$(command -v guile)}
34 MES_ARENA=${MES_ARENA-100000000}
36 if [ -n "$GUILE" -a "$GUILE" != true ]; then
37 sh ${srcdest}build-aux/build-guile.sh
41 sh ${srcdest}build-aux/build-cc.sh
44 if [ -n "$CC32" ]; then
45 sh ${srcdest}build-aux/build-cc32.sh
48 if [ -n "$CC64" ]; then
49 sh ${srcdest}build-aux/build-cc64.sh
52 if [ -n "$TCC" ]; then
53 CC32=$TCC sh ${srcdest}build-aux/build-cc32.sh
56 sh ${srcdest}build-aux/build-mes.sh
57 if [ "$arch" = x86_64 -a "$GUILE" ]; then
58 MES=$GUILE sh ${srcdest}build-aux/build-x86_64-mes.sh