1 # Top level configure fragment for GNU Modula-2.
2 # Copyright (C) 2000-2024 Free Software Foundation, Inc.
4 # This file is part of GCC.
6 # GCC is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # GCC is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GCC; see the file COPYING3. If not see
18 # <http://www.gnu.org/licenses/>.
20 # Configure looks for the existence of this file to auto-config each language.
21 # We define several parameters used by configure:
23 # language - name of language as it would appear in $(LANGUAGES)
24 # compilers - value to add to $(COMPILERS)
25 # stagestuff - files to add to $(STAGESTUFF)
29 compilers="cc1gm2\$(exeext)"
31 stagestuff="gm2\$(exeext) cc1gm2\$(exeext) cc1gm2-cross\$(exeext)"
33 target_libs="target-libstdc++-v3 target-libgm2"
35 # The Modula-2 frontend needs C++ compiler during stage 1.
36 lang_requires_boot_languages=c++
38 # Do not build by default.
41 gtfiles="\$(srcdir)/m2/gm2-lang.cc \
42 \$(srcdir)/m2/gm2-lang.h \
43 \$(srcdir)/m2/gm2-gcc/rtegraph.cc \
44 \$(srcdir)/m2/gm2-gcc/m2block.cc \
45 \$(srcdir)/m2/gm2-gcc/m2builtins.cc \
46 \$(srcdir)/m2/gm2-gcc/m2decl.cc \
47 \$(srcdir)/m2/gm2-gcc/m2except.cc \
48 \$(srcdir)/m2/gm2-gcc/m2expr.cc \
49 \$(srcdir)/m2/gm2-gcc/m2statement.cc \
50 \$(srcdir)/m2/gm2-gcc/m2type.cc"
52 outputs="m2/config-make \