| 1 |
# Top level configure fragment for GNU Objective-C++. |
| 2 |
# Copyright (C) 2005-2025 Free Software Foundation, Inc. |
| 3 |
# Contributed by Ziemowit Laski <[email protected]> |
| 4 |
|
| 5 |
#This file is part of GCC. |
| 6 |
|
| 7 |
#GCC is free software; you can redistribute it and/or modify |
| 8 |
#it under the terms of the GNU General Public License as published by |
| 9 |
#the Free Software Foundation; either version 3, or (at your option) |
| 10 |
#any later version. |
| 11 |
|
| 12 |
#GCC is distributed in the hope that it will be useful, |
| 13 |
#but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
#GNU General Public License for more details. |
| 16 |
|
| 17 |
#You should have received a copy of the GNU General Public License |
| 18 |
#along with GCC; see the file COPYING3. If not see |
| 19 |
#<http://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
# Configure looks for the existence of this file to auto-config each language. |
| 22 |
# We define several parameters used by configure: |
| 23 |
# |
| 24 |
# language - name of language as it would appear in $(LANGUAGES) |
| 25 |
# compilers - value to add to $(COMPILERS) |
| 26 |
|
| 27 |
language="obj-c++" |
| 28 |
|
| 29 |
compilers="cc1objplus\$(exeext)" |
| 30 |
|
| 31 |
# Per GCC Steering Committee. |
| 32 |
build_by_default="no" |
| 33 |
|
| 34 |
# By building the Objective-C and C++ front-ends, we will get |
| 35 |
# the object files we need, along with the libraries (libstdc++, |
| 36 |
# libobjc). |
| 37 |
lang_requires="objc c++" |
| 38 |
subdir_requires="objc cp" |
| 39 |
|
| 40 |
# When you add to this gtfiles list a header which comes from a |
| 41 |
# directory belonging to another language (ie, C++ or ObjC), you need |
| 42 |
# to also edit gengtype.cc adding a special rule for the header to |
| 43 |
# avoid having the GC stuff from that header being added to gtype-cp.h |
| 44 |
# or gtype-objc.h. |
| 45 |
|
| 46 |
# Get the C++ FE's gtfiles list. Do this in a subshell, so we can |
| 47 |
# extract exactly the gtfiles var, but munge cp-lang.cc into objcp-lang.cc. |
| 48 |
gtfiles="$(. $srcdir/cp/config-lang.in ; \ |
| 49 |
echo $gtfiles | sed 's+/cp/cp-lang.cc +/objcp/objcp-lang.cc +')" |
| 50 |
|
| 51 |
# Now add our special bits to it. Please keep this list sorted. |
| 52 |
gtfiles="$gtfiles \ |
| 53 |
\$(srcdir)/objc/objc-act.h \ |
| 54 |
\$(srcdir)/objc/objc-map.h \ |
| 55 |
\$(srcdir)/objc/objc-act.cc \ |
| 56 |
\$(srcdir)/objc/objc-gnu-runtime-abi-01.cc \ |
| 57 |
\$(srcdir)/objc/objc-next-runtime-abi-01.cc \ |
| 58 |
\$(srcdir)/objc/objc-next-runtime-abi-02.cc \ |
| 59 |
\$(srcdir)/objc/objc-runtime-shared-support.cc \ |
| 60 |
" |
| 61 |
|