Define STAGE1_LIBS to link against libcl.a in stage1 on hpux.
[official-gcc.git] / gcc / d / config-lang.in
blob0568b8da1de73b64d66e2dd7d6499c3f4c93e1a0
1 # config-lang.in -- Top level configure fragment for gcc D frontend.
2 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
4 # GCC is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
9 # GCC is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with GCC; see the file COPYING3.  If not see
16 # <http://www.gnu.org/licenses/>.
18 # Configure looks for the existence of this file to auto-config each language.
19 # We define several parameters used by configure:
21 # language      - name of language as it would appear in $(LANGUAGES)
22 # compilers     - value to add to $(COMPILERS)
24 language="d"
26 compilers="d21\$(exeext)"
28 phobos_target_deps="target-zlib target-libbacktrace"
29 phobos_target_libs="target-libphobos $phobos_target_deps"
31 case "${noconfigdirs}" in
32   # Check if phobos was disabled as unsupported
33   *target-libphobos*)
34     disabled_target_libs="$disabled_target_libs $phobos_target_deps"
35     ;;
36   *)
37     # The --disable-<component> handler in configure.ac is called after
38     # config-lang.in. So when using --disable-libphobos, it has not been
39     # added to noconfigdirs here yet
40     if test x${enable_libphobos} != xno; then
41       target_libs="$phobos_target_libs"
42     else
43       disabled_target_libs="$disabled_target_libs $phobos_target_libs"
44     fi
45     ;;
46 esac
48 gtfiles="\$(srcdir)/d/d-tree.h \$(srcdir)/d/d-builtins.cc \$(srcdir)/d/d-lang.cc \$(srcdir)/d/typeinfo.cc"
50 # Do not build by default.
51 build_by_default="no"