annotate libobjc/configure.ac @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Process this file with autoconf to produce a configure script.
kono
parents:
diff changeset
2 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
kono
parents:
diff changeset
3 # Originally contributed by Dave Love (d.love@dl.ac.uk).
kono
parents:
diff changeset
4 #
kono
parents:
diff changeset
5 #This file is part of GCC.
kono
parents:
diff changeset
6 #
kono
parents:
diff changeset
7 #GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
8 #it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
9 #the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
10 #any later version.
kono
parents:
diff changeset
11 #
kono
parents:
diff changeset
12 #GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
13 #but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
14 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
15 #GNU General Public License for more details.
kono
parents:
diff changeset
16 #
kono
parents:
diff changeset
17 #You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
18 #along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
19 #<http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 AC_PREREQ(2.64)
kono
parents:
diff changeset
22 AC_INIT(package-unused, version-unused,, libobjc)
kono
parents:
diff changeset
23 AC_CONFIG_SRCDIR([objc/objc.h])
kono
parents:
diff changeset
24 GCC_TOPLEV_SUBDIRS
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 # We need the following definitions because AC_PROG_LIBTOOL relies on them
kono
parents:
diff changeset
27 PACKAGE=libobjc
kono
parents:
diff changeset
28 # Version is pulled out to make it a bit easier to change using sed.
kono
parents:
diff changeset
29 VERSION=4:0:0
kono
parents:
diff changeset
30 AC_SUBST(VERSION)
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 # This works around the fact that libtool configuration may change LD
kono
parents:
diff changeset
33 # for this particular configuration, but some shells, instead of
kono
parents:
diff changeset
34 # keeping the changes in LD private, export them just because LD is
kono
parents:
diff changeset
35 # exported.
kono
parents:
diff changeset
36 ORIGINAL_LD_FOR_MULTILIBS=$LD
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 # -------
kono
parents:
diff changeset
39 # Options
kono
parents:
diff changeset
40 # -------
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 # We use these options to decide which functions to include.
kono
parents:
diff changeset
43 AC_ARG_WITH(target-subdir,
kono
parents:
diff changeset
44 [ --with-target-subdir=SUBDIR
kono
parents:
diff changeset
45 configuring in a subdirectory])
kono
parents:
diff changeset
46 AC_ARG_WITH(cross-host,
kono
parents:
diff changeset
47 [ --with-cross-host=HOST configuring with a cross compiler])
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49 AC_MSG_CHECKING([for --enable-version-specific-runtime-libs])
kono
parents:
diff changeset
50 AC_ARG_ENABLE(version-specific-runtime-libs,
kono
parents:
diff changeset
51 [ --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory ],
kono
parents:
diff changeset
52 [case "$enableval" in
kono
parents:
diff changeset
53 yes) version_specific_libs=yes ;;
kono
parents:
diff changeset
54 no) version_specific_libs=no ;;
kono
parents:
diff changeset
55 *) AC_MSG_ERROR([Unknown argument to enable/disable version-specific libs]);;
kono
parents:
diff changeset
56 esac],
kono
parents:
diff changeset
57 [version_specific_libs=no])
kono
parents:
diff changeset
58 AC_MSG_RESULT($version_specific_libs)
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 # -----------
kono
parents:
diff changeset
61 # Directories
kono
parents:
diff changeset
62 # -----------
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 # Find the rest of the source tree framework.
kono
parents:
diff changeset
65 AM_ENABLE_MULTILIB(, ..)
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 AC_CANONICAL_SYSTEM
kono
parents:
diff changeset
68 ACX_NONCANONICAL_TARGET
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 # Export source directory.
kono
parents:
diff changeset
71 # These need to be absolute paths, yet at the same time need to
kono
parents:
diff changeset
72 # canonicalize only relative paths, because then amd will not unmount
kono
parents:
diff changeset
73 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
kono
parents:
diff changeset
74 case $srcdir in
kono
parents:
diff changeset
75 [\\/$]* | ?:[\\/]*) glibcpp_srcdir=${srcdir} ;;
kono
parents:
diff changeset
76 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
kono
parents:
diff changeset
77 esac
kono
parents:
diff changeset
78 AC_SUBST(glibcpp_srcdir)
kono
parents:
diff changeset
79
kono
parents:
diff changeset
80 # Calculate toolexeclibdir
kono
parents:
diff changeset
81 # Also toolexecdir, though it's only used in toolexeclibdir
kono
parents:
diff changeset
82 case ${version_specific_libs} in
kono
parents:
diff changeset
83 yes)
kono
parents:
diff changeset
84 # Need the gcc compiler version to know where to install libraries
kono
parents:
diff changeset
85 # and header files if --enable-version-specific-runtime-libs option
kono
parents:
diff changeset
86 # is selected.
kono
parents:
diff changeset
87 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
kono
parents:
diff changeset
88 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
kono
parents:
diff changeset
89 ;;
kono
parents:
diff changeset
90 no)
kono
parents:
diff changeset
91 if test -n "$with_cross_host" &&
kono
parents:
diff changeset
92 test x"$with_cross_host" != x"no"; then
kono
parents:
diff changeset
93 # Install a library built with a cross compiler in tooldir, not libdir.
kono
parents:
diff changeset
94 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
kono
parents:
diff changeset
95 toolexeclibdir='$(toolexecdir)/lib'
kono
parents:
diff changeset
96 else
kono
parents:
diff changeset
97 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
kono
parents:
diff changeset
98 toolexeclibdir='$(libdir)'
kono
parents:
diff changeset
99 fi
kono
parents:
diff changeset
100 multi_os_directory=`$CC -print-multi-os-directory`
kono
parents:
diff changeset
101 case $multi_os_directory in
kono
parents:
diff changeset
102 .) ;; # Avoid trailing /.
kono
parents:
diff changeset
103 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
kono
parents:
diff changeset
104 esac
kono
parents:
diff changeset
105 ;;
kono
parents:
diff changeset
106 esac
kono
parents:
diff changeset
107 AC_SUBST(toolexecdir)
kono
parents:
diff changeset
108 AC_SUBST(toolexeclibdir)
kono
parents:
diff changeset
109
kono
parents:
diff changeset
110 # Figure out if we want to name the include directory and the
kono
parents:
diff changeset
111 # library name changes differently.
kono
parents:
diff changeset
112 includedirname=include
kono
parents:
diff changeset
113 libsuffix=
kono
parents:
diff changeset
114 case "${host}" in
kono
parents:
diff changeset
115 *-darwin*)
kono
parents:
diff changeset
116 # Darwin is the only target so far that needs a different include directory.
kono
parents:
diff changeset
117 includedirname=include-gnu-runtime
kono
parents:
diff changeset
118 libsuffix=-gnu
kono
parents:
diff changeset
119 ;;
kono
parents:
diff changeset
120 esac
kono
parents:
diff changeset
121 AC_SUBST(includedirname)
kono
parents:
diff changeset
122 AC_SUBST(libsuffix)
kono
parents:
diff changeset
123
kono
parents:
diff changeset
124 AC_CONFIG_HEADERS(config.h)
kono
parents:
diff changeset
125
kono
parents:
diff changeset
126 # --------
kono
parents:
diff changeset
127 # Programs
kono
parents:
diff changeset
128 # --------
kono
parents:
diff changeset
129
kono
parents:
diff changeset
130 GCC_NO_EXECUTABLES
kono
parents:
diff changeset
131
kono
parents:
diff changeset
132 # We must force CC to /not/ be a precious variable; otherwise
kono
parents:
diff changeset
133 # the wrong, non-multilib-adjusted value will be used in multilibs.
kono
parents:
diff changeset
134 # As a side effect, we have to subst CFLAGS ourselves.
kono
parents:
diff changeset
135 m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS])
kono
parents:
diff changeset
136 m4_define([_AC_ARG_VAR_PRECIOUS],[])
kono
parents:
diff changeset
137 AC_PROG_CC
kono
parents:
diff changeset
138 m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
kono
parents:
diff changeset
139
kono
parents:
diff changeset
140 # extra LD Flags which are required for targets
kono
parents:
diff changeset
141 ACX_LT_HOST_FLAGS
kono
parents:
diff changeset
142 case "${host}" in
kono
parents:
diff changeset
143 *-darwin*)
kono
parents:
diff changeset
144 # Darwin needs -single_module when linking libobjc
kono
parents:
diff changeset
145 extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
kono
parents:
diff changeset
146 ;;
kono
parents:
diff changeset
147 *-cygwin*|*-mingw*)
kono
parents:
diff changeset
148 # Tell libtool to build DLLs on Windows
kono
parents:
diff changeset
149 extra_ldflags_libobjc='$(lt_host_flags)'
kono
parents:
diff changeset
150 ;;
kono
parents:
diff changeset
151 esac
kono
parents:
diff changeset
152 AC_SUBST(extra_ldflags_libobjc)
kono
parents:
diff changeset
153
kono
parents:
diff changeset
154 AC_SUBST(CFLAGS)
kono
parents:
diff changeset
155
kono
parents:
diff changeset
156 AC_CHECK_TOOL(AS, as)
kono
parents:
diff changeset
157 AC_CHECK_TOOL(AR, ar)
kono
parents:
diff changeset
158 AC_CHECK_TOOL(RANLIB, ranlib, :)
kono
parents:
diff changeset
159 AC_PROG_INSTALL
kono
parents:
diff changeset
160
kono
parents:
diff changeset
161 AM_MAINTAINER_MODE
kono
parents:
diff changeset
162
kono
parents:
diff changeset
163 # Enable Win32 DLL on MS Windows - FIXME
kono
parents:
diff changeset
164 AC_LIBTOOL_WIN32_DLL
kono
parents:
diff changeset
165
kono
parents:
diff changeset
166 AC_PROG_LIBTOOL
kono
parents:
diff changeset
167
kono
parents:
diff changeset
168 AM_PROG_CC_C_O
kono
parents:
diff changeset
169
kono
parents:
diff changeset
170 AC_PROG_MAKE_SET
kono
parents:
diff changeset
171
kono
parents:
diff changeset
172 # -------
kono
parents:
diff changeset
173 # Headers
kono
parents:
diff changeset
174 # -------
kono
parents:
diff changeset
175
kono
parents:
diff changeset
176 # Sanity check for the cross-compilation case:
kono
parents:
diff changeset
177 AC_CHECK_HEADER(stdio.h,:,
kono
parents:
diff changeset
178 [AC_MSG_ERROR([Can't find stdio.h.
kono
parents:
diff changeset
179 You must have a usable C system for the target already installed, at least
kono
parents:
diff changeset
180 including headers and, preferably, the library, before you can configure
kono
parents:
diff changeset
181 the Objective C runtime system. If necessary, install gcc now with
kono
parents:
diff changeset
182 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'.])])
kono
parents:
diff changeset
183
kono
parents:
diff changeset
184 AC_HEADER_STDC
kono
parents:
diff changeset
185
kono
parents:
diff changeset
186 AC_CHECK_HEADERS(sched.h)
kono
parents:
diff changeset
187
kono
parents:
diff changeset
188 # -----------
kono
parents:
diff changeset
189 # Miscellanea
kono
parents:
diff changeset
190 # -----------
kono
parents:
diff changeset
191
kono
parents:
diff changeset
192 # Check if we have thread-local storage
kono
parents:
diff changeset
193 GCC_CHECK_TLS
kono
parents:
diff changeset
194
kono
parents:
diff changeset
195 gt_BITFIELD_TYPE_MATTERS
kono
parents:
diff changeset
196
kono
parents:
diff changeset
197 # -----------
kono
parents:
diff changeset
198 # boehm-gc
kono
parents:
diff changeset
199 # -----------
kono
parents:
diff changeset
200
kono
parents:
diff changeset
201 AC_ARG_ENABLE(objc-gc,
kono
parents:
diff changeset
202 [AS_HELP_STRING([--enable-objc-gc],
kono
parents:
diff changeset
203 [enable use of Boehm's garbage collector with the
kono
parents:
diff changeset
204 GNU Objective-C runtime])],,enable_objc_gc=no)
kono
parents:
diff changeset
205 AC_ARG_WITH([target-bdw-gc],
kono
parents:
diff changeset
206 [AS_HELP_STRING([--with-target-bdw-gc=PATHLIST],
kono
parents:
diff changeset
207 [specify prefix directory for installed bdw-gc package.
kono
parents:
diff changeset
208 Equivalent to --with-target-bdw-gc-include=PATH/include
kono
parents:
diff changeset
209 plus --with-target-bdw-gc-lib=PATH/lib])])
kono
parents:
diff changeset
210 AC_ARG_WITH([target-bdw-gc-include],
kono
parents:
diff changeset
211 [AS_HELP_STRING([--with-target-bdw-gc-include=PATHLIST],
kono
parents:
diff changeset
212 [specify directories for installed bdw-gc include files])])
kono
parents:
diff changeset
213 AC_ARG_WITH([target-bdw-gc-lib],
kono
parents:
diff changeset
214 [AS_HELP_STRING([--with-target-bdw-gc-lib=PATHLIST],
kono
parents:
diff changeset
215 [specify directories for installed bdw-gc library])])
kono
parents:
diff changeset
216
kono
parents:
diff changeset
217 case "$enable_objc_gc" in
kono
parents:
diff changeset
218 no)
kono
parents:
diff changeset
219 use_bdw_gc=no
kono
parents:
diff changeset
220 ;;
kono
parents:
diff changeset
221 *)
kono
parents:
diff changeset
222 AC_MSG_CHECKING([for bdw garbage collector])
kono
parents:
diff changeset
223 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
kono
parents:
diff changeset
224 dnl no bdw-gw options, assuming bdw-gc in default locations
kono
parents:
diff changeset
225 BDW_GC_CFLAGS=
kono
parents:
diff changeset
226 BDW_GC_LIBS="-lgc"
kono
parents:
diff changeset
227 else
kono
parents:
diff changeset
228 dnl bdw-gw options passed by configure flags
kono
parents:
diff changeset
229 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
kono
parents:
diff changeset
230 AC_MSG_ERROR([found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing])
kono
parents:
diff changeset
231 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
kono
parents:
diff changeset
232 AC_MSG_ERROR([found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing])
kono
parents:
diff changeset
233 else
kono
parents:
diff changeset
234 AC_MSG_RESULT([using paths configured with --with-target-bdw-gc options])
kono
parents:
diff changeset
235 fi
kono
parents:
diff changeset
236 mldir=`${CC-gcc} --print-multi-directory 2>/dev/null`
kono
parents:
diff changeset
237 bdw_val=
kono
parents:
diff changeset
238 if test "x$with_target_bdw_gc" != x; then
kono
parents:
diff changeset
239 for i in `echo $with_target_bdw_gc | tr ',' ' '`; do
kono
parents:
diff changeset
240 case "$i" in
kono
parents:
diff changeset
241 *=*) sd=${i%%=*}; d=${i#*=} ;;
kono
parents:
diff changeset
242 *) sd=.; d=$i ;;
kono
parents:
diff changeset
243 esac
kono
parents:
diff changeset
244 if test "$mldir" = "$sd"; then
kono
parents:
diff changeset
245 bdw_val=$d
kono
parents:
diff changeset
246 fi
kono
parents:
diff changeset
247 done
kono
parents:
diff changeset
248 if test "x$bdw_val" = x; then
kono
parents:
diff changeset
249 AC_MSG_ERROR([no multilib path ($mldir) found in --with-target-bdw-gc])
kono
parents:
diff changeset
250 fi
kono
parents:
diff changeset
251 bdw_inc_dir="$bdw_val/include"
kono
parents:
diff changeset
252 bdw_lib_dir="$bdw_val/lib"
kono
parents:
diff changeset
253 fi
kono
parents:
diff changeset
254 bdw_val=
kono
parents:
diff changeset
255 if test "x$with_target_bdw_gc_include" != x; then
kono
parents:
diff changeset
256 for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do
kono
parents:
diff changeset
257 case "$i" in
kono
parents:
diff changeset
258 *=*) sd=${i%%=*}; d=${i#*=} ;;
kono
parents:
diff changeset
259 *) sd=.; d=$i; fallback=$i ;;
kono
parents:
diff changeset
260 esac
kono
parents:
diff changeset
261 if test "$mldir" = "$sd"; then
kono
parents:
diff changeset
262 bdw_val=$d
kono
parents:
diff changeset
263 fi
kono
parents:
diff changeset
264 done
kono
parents:
diff changeset
265 if test "x$bdw_val" = x && test "x$bdw_inc_dir" = x && test "x$fallback" != x; then
kono
parents:
diff changeset
266 bdw_inc_dir="$fallback"
kono
parents:
diff changeset
267 elif test "x$bdw_val" = x; then
kono
parents:
diff changeset
268 AC_MSG_ERROR([no multilib path ($mldir) found in --with-target-bdw-gc-include])
kono
parents:
diff changeset
269 else
kono
parents:
diff changeset
270 bdw_inc_dir="$bdw_val"
kono
parents:
diff changeset
271 fi
kono
parents:
diff changeset
272 fi
kono
parents:
diff changeset
273 bdw_val=
kono
parents:
diff changeset
274 if test "x$with_target_bdw_gc_lib" != x; then
kono
parents:
diff changeset
275 for i in `echo $with_target_bdw_gc_lib | tr ',' ' '`; do
kono
parents:
diff changeset
276 case "$i" in
kono
parents:
diff changeset
277 *=*) sd=${i%%=*}; d=${i#*=} ;;
kono
parents:
diff changeset
278 *) sd=.; d=$i ;;
kono
parents:
diff changeset
279 esac
kono
parents:
diff changeset
280 if test "$mldir" = "$sd"; then
kono
parents:
diff changeset
281 bdw_val=$d
kono
parents:
diff changeset
282 fi
kono
parents:
diff changeset
283 done
kono
parents:
diff changeset
284 if test "x$bdw_val" = x; then
kono
parents:
diff changeset
285 AC_MSG_ERROR([no multilib path ($mldir) found in --with-target-bdw-gc-lib])
kono
parents:
diff changeset
286 fi
kono
parents:
diff changeset
287 bdw_lib_dir="$bdw_val"
kono
parents:
diff changeset
288 fi
kono
parents:
diff changeset
289 if test "x$bdw_inc_dir" = x; then
kono
parents:
diff changeset
290 AC_MSG_ERROR([no multilib path ($mldir) found in --with-target-bdw-gc-include])
kono
parents:
diff changeset
291 fi
kono
parents:
diff changeset
292 if test "x$bdw_lib_dir" = x; then
kono
parents:
diff changeset
293 AC_MSG_ERROR([no multilib path ($mldir) found in --with-target-bdw-gc-lib])
kono
parents:
diff changeset
294 fi
kono
parents:
diff changeset
295 BDW_GC_CFLAGS="-I$bdw_inc_dir"
kono
parents:
diff changeset
296 if test -f $bdw_lib_dir/libgc.la; then
kono
parents:
diff changeset
297 BDW_GC_LIBS="$bdw_lib_dir/libgc.la"
kono
parents:
diff changeset
298 else
kono
parents:
diff changeset
299 BDW_GC_LIBS="-L$bdw_lib_dir -lgc"
kono
parents:
diff changeset
300 fi
kono
parents:
diff changeset
301 AC_MSG_RESULT([found])
kono
parents:
diff changeset
302 fi
kono
parents:
diff changeset
303
kono
parents:
diff changeset
304 case "$BDW_GC_LIBS" in
kono
parents:
diff changeset
305 *libgc.la)
kono
parents:
diff changeset
306 use_bdw_gc=yes
kono
parents:
diff changeset
307 ;;
kono
parents:
diff changeset
308 *)
kono
parents:
diff changeset
309 AC_MSG_CHECKING([for system boehm-gc])
kono
parents:
diff changeset
310 save_CFLAGS=$CFLAGS
kono
parents:
diff changeset
311 save_LIBS=$LIBS
kono
parents:
diff changeset
312 CFLAGS="$CFLAGS $BDW_GC_CFLAGS"
kono
parents:
diff changeset
313 LIBS="$LIBS $BDW_GC_LIBS"
kono
parents:
diff changeset
314 dnl the link test is not good enough for ARM32 multilib detection,
kono
parents:
diff changeset
315 dnl first check to link, then to run
kono
parents:
diff changeset
316 AC_LINK_IFELSE(
kono
parents:
diff changeset
317 [AC_LANG_PROGRAM([#include <gc/gc.h>],[GC_init()])],
kono
parents:
diff changeset
318 [
kono
parents:
diff changeset
319 AC_RUN_IFELSE([AC_LANG_SOURCE([[
kono
parents:
diff changeset
320 #include <gc/gc.h>
kono
parents:
diff changeset
321 int main() {
kono
parents:
diff changeset
322 GC_init();
kono
parents:
diff changeset
323 return 0;
kono
parents:
diff changeset
324 }
kono
parents:
diff changeset
325 ]])],
kono
parents:
diff changeset
326 [system_bdw_gc_found=yes],
kono
parents:
diff changeset
327 [system_bdw_gc_found=no],
kono
parents:
diff changeset
328 dnl assume no system boehm-gc for cross builds ...
kono
parents:
diff changeset
329 [system_bdw_gc_found=no]
kono
parents:
diff changeset
330 )
kono
parents:
diff changeset
331 ],
kono
parents:
diff changeset
332 [system_bdw_gc_found=no])
kono
parents:
diff changeset
333 CFLAGS=$save_CFLAGS
kono
parents:
diff changeset
334 LIBS=$save_LIBS
kono
parents:
diff changeset
335 if test x$enable_objc_gc = xauto && test x$system_bdw_gc_found = xno; then
kono
parents:
diff changeset
336 AC_MSG_WARN([system bdw-gc not found, not building libobjc_gc])
kono
parents:
diff changeset
337 use_bdw_gc=no
kono
parents:
diff changeset
338 elif test x$enable_objc_gc = xyes && test x$system_bdw_gc_found = xno; then
kono
parents:
diff changeset
339 AC_MSG_ERROR([system bdw-gc required but not found])
kono
parents:
diff changeset
340 else
kono
parents:
diff changeset
341 use_bdw_gc=yes
kono
parents:
diff changeset
342 AC_MSG_RESULT([found])
kono
parents:
diff changeset
343 fi
kono
parents:
diff changeset
344 esac
kono
parents:
diff changeset
345 esac
kono
parents:
diff changeset
346
kono
parents:
diff changeset
347 if test "$use_bdw_gc" = no; then
kono
parents:
diff changeset
348 OBJC_GCFLAGS=''
kono
parents:
diff changeset
349 OBJC_BOEHM_GC=''
kono
parents:
diff changeset
350 OBJC_BOEHM_GC_INCLUDES=''
kono
parents:
diff changeset
351 OBJC_BOEHM_GC_LIBS=''
kono
parents:
diff changeset
352 else
kono
parents:
diff changeset
353 OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
kono
parents:
diff changeset
354 OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
kono
parents:
diff changeset
355 OBJC_BOEHM_GC_INCLUDES=$BDW_GC_CFLAGS
kono
parents:
diff changeset
356 OBJC_BOEHM_GC_LIBS=$BDW_GC_LIBS
kono
parents:
diff changeset
357 fi
kono
parents:
diff changeset
358 AC_SUBST(OBJC_GCFLAGS)
kono
parents:
diff changeset
359 AC_SUBST(OBJC_BOEHM_GC)
kono
parents:
diff changeset
360 AC_SUBST(OBJC_BOEHM_GC_INCLUDES)
kono
parents:
diff changeset
361 AC_SUBST(OBJC_BOEHM_GC_LIBS)
kono
parents:
diff changeset
362
kono
parents:
diff changeset
363 # Determine what GCC version number to use in filesystem paths.
kono
parents:
diff changeset
364 GCC_BASE_VER
kono
parents:
diff changeset
365
kono
parents:
diff changeset
366 # ------
kono
parents:
diff changeset
367 # Output
kono
parents:
diff changeset
368 # ------
kono
parents:
diff changeset
369
kono
parents:
diff changeset
370 if test ${multilib} = yes; then
kono
parents:
diff changeset
371 multilib_arg="--enable-multilib"
kono
parents:
diff changeset
372 else
kono
parents:
diff changeset
373 multilib_arg=
kono
parents:
diff changeset
374 fi
kono
parents:
diff changeset
375
kono
parents:
diff changeset
376 AC_CONFIG_FILES([Makefile])
kono
parents:
diff changeset
377 AC_OUTPUT