std_sstream.h (basic_istringstream): Adjust initialization.
[gcc.git] / libstdc++-v3 / configure.in
1 # Process this file with autoconf to produce a configure script, like so:
2 # aclocal && autoconf && autoheader && automake
3
4 AC_PREREQ(2.13)
5 AC_INIT(src/ios.cc)
6
7 # This works around the fact that libtool configuration may change LD
8 # for this particular configuration, but some shells, instead of
9 # keeping the changes in LD private, export them just because LD is
10 # exported. Only used at the end of this file.
11 ORIGINAL_LD_FOR_MULTILIBS=$LD
12
13 PACKAGE=libstdc++
14 AC_SUBST(PACKAGE)
15 # For libtool versioning info, format is CURRENT:REVISION:AGE
16 libtool_VERSION=6:0:0
17 AC_SUBST(libtool_VERSION)
18
19 GLIBCPP_TOPREL_CONFIGURE
20
21 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
22 #
23 # You will slowly go insane if you do not grok the following fact: when
24 # building v3 as part of the compiler, the top-level /target/ becomes the
25 # library's /host/. `configure' then causes --target to default to --host,
26 # exactly like any other package using autoconf. Therefore, 'target' and
27 # 'host' will always be the same. This makes sense both for native and
28 # cross compilers, just think about it for a little while. :-)
29 #
30 # Also, if v3 is being configured as part of a cross compiler, the top-level
31 # configure script will pass the "real" host as $with_cross_host.
32 #
33 # AC 2.5x sets target_alias iff the user specified --target, but we use it
34 # everywhere, so we set it here just to be sure. In AC 2.13
35 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
36 AC_CANONICAL_SYSTEM
37 target_alias=${target_alias-$target}
38 AC_SUBST(target_alias)
39
40 # Runs configure.target, finds CC, CXX and assorted other critical bits.
41 # Must run this before the GLIBCPP_ENABLE_* macros below.
42 GLIBCPP_CONFIGURE(.)
43
44 AM_INIT_AUTOMAKE($PACKAGE, $gcc_version)
45 AM_CONFIG_HEADER(config.h)
46
47 AC_LIBTOOL_DLOPEN
48 AM_PROG_LIBTOOL
49 AC_SUBST(enable_shared)
50 AC_SUBST(enable_static)
51
52 # Check for c++ or library specific bits that don't require linking.
53 #GLIBCPP_CHECK_COMPILER_VERSION
54 GLIBCPP_CHECK_GNU_MAKE
55
56 # Enable all the variable C++ stuff. C_MBCHAR must come early.
57 GLIBCPP_ENABLE_CSTDIO
58 GLIBCPP_ENABLE_CLOCALE
59 GLIBCPP_ENABLE_CHEADERS([$c_model])
60 GLIBCPP_ENABLE_C_MBCHAR([yes])
61 GLIBCPP_ENABLE_C99([yes])
62 GLIBCPP_ENABLE_LONG_LONG([yes])
63 GLIBCPP_ENABLE_THREADS
64 GLIBCPP_ENABLE_SJLJ_EXCEPTIONS
65 GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS
66 GLIBCPP_ENABLE_CONCEPT_CHECKS
67 GLIBCPP_ENABLE_CXX_FLAGS
68 GLIBCPP_ENABLE_DEBUG([no])
69 GLIBCPP_ENABLE_DEBUG_FLAGS([none])
70
71 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
72 AC_CHECK_HEADERS(string.h stdlib.h)
73
74 # No surprises, no surprises...
75 if test $ATOMICITYH = cpu/generic ; then
76 AC_MSG_WARN([No native atomic operations are provided yet for this platform.])
77 if test $target_thread_file = single; then
78 AC_MSG_WARN([They cannot be faked when thread support is disabled.])
79 AC_MSG_WARN([Thread-safety of certain classes is not guaranteed.])
80 else
81 AC_MSG_WARN([They will be faked using a mutex.])
82 AC_MSG_WARN([Performance of certain classes will degrade as a result.])
83 fi
84 fi
85
86
87 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
88
89 # We are being configured with some form of cross compiler.
90 GLIBCPP_IS_CROSS_COMPILING=1
91
92 # This lets us hard-code the functionality we know we'll have in the cross
93 # target environment. "Let" is a sugar-coated word placed on an especially
94 # dull and tedious hack, actually.
95 #
96 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
97 # that involve linking, can't be used:
98 # "cannot open sim-crt0.o"
99 # "cannot open crt0.o"
100 # etc. All this is because there currently exists no unified, consistent
101 # way for top level CC information to be passed down to target directories:
102 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
103 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
104 # crosses can be removed.
105
106 # If Canadian cross, then don't pick up tools from the build directory.
107 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
108 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
109 CANADIAN=yes
110 else
111 CANADIAN=no
112 fi
113
114 # Construct crosses by hand, eliminating bits that need ld...
115 # GLIBCPP_CHECK_COMPILER_FEATURES
116 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
117 # GLIBCPP_CHECK_MATH_SUPPORT
118
119 case "$target" in
120 *-linux*)
121 os_include_dir="os/gnu-linux"
122 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
123 machine/endian.h machine/param.h sys/machine.h sys/types.h \
124 fp.h locale.h float.h inttypes.h])
125 SECTION_FLAGS='-ffunction-sections -fdata-sections'
126 AC_SUBST(SECTION_FLAGS)
127 GLIBCPP_CHECK_LINKER_FEATURES
128 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
129 GLIBCPP_CHECK_WCHAR_T_SUPPORT
130 AC_DEFINE(HAVE_COPYSIGN)
131 AC_DEFINE(HAVE_COPYSIGNF)
132 AC_DEFINE(HAVE_FINITE)
133 AC_DEFINE(HAVE_FINITEF)
134 AC_DEFINE(HAVE_FREXPF)
135 AC_DEFINE(HAVE_HYPOTF)
136 AC_DEFINE(HAVE_ISINF)
137 AC_DEFINE(HAVE_ISINFF)
138 AC_DEFINE(HAVE_ISNAN)
139 AC_DEFINE(HAVE_ISNANF)
140 AC_DEFINE(HAVE_SINCOS)
141 AC_DEFINE(HAVE_SINCOSF)
142 if test x"long_double_math_on_this_cpu" = x"yes"; then
143 AC_DEFINE(HAVE_FINITEL)
144 AC_DEFINE(HAVE_HYPOTL)
145 AC_DEFINE(HAVE_ISINFL)
146 AC_DEFINE(HAVE_ISNANL)
147 fi
148 ;;
149 *-hpux*)
150 # Check for available headers.
151 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
152 machine/endian.h machine/param.h sys/machine.h sys/types.h \
153 fp.h locale.h float.h inttypes.h])
154 SECTION_FLAGS='-ffunction-sections -fdata-sections'
155 AC_SUBST(SECTION_FLAGS)
156 GLIBCPP_CHECK_LINKER_FEATURES
157 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
158 GLIBCPP_CHECK_WCHAR_T_SUPPORT
159 os_include_dir="os/hpux"
160 AC_DEFINE(HAVE_COPYSIGN)
161 AC_DEFINE(HAVE_COPYSIGNF)
162 AC_DEFINE(HAVE_FREXPF)
163 AC_DEFINE(HAVE_HYPOT)
164 case "$target" in
165 *-hpux10*)
166 AC_DEFINE(HAVE_FINITE)
167 AC_DEFINE(HAVE_FINITEF)
168 AC_DEFINE(HAVE_ISINF)
169 AC_DEFINE(HAVE_ISINFF)
170 AC_DEFINE(HAVE_ISNAN)
171 AC_DEFINE(HAVE_ISNANF)
172 ;;
173 esac
174
175 ;;
176 *-netbsd*)
177 # Check for available headers.
178 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
179 machine/endian.h machine/param.h sys/machine.h sys/types.h \
180 fp.h locale.h float.h inttypes.h])
181 SECTION_FLAGS='-ffunction-sections -fdata-sections'
182 AC_SUBST(SECTION_FLAGS)
183 GLIBCPP_CHECK_LINKER_FEATURES
184 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
185 GLIBCPP_CHECK_WCHAR_T_SUPPORT
186 os_include_dir="os/bsd/netbsd"
187 AC_DEFINE(HAVE_COPYSIGN)
188 AC_DEFINE(HAVE_COPYSIGNF)
189 AC_DEFINE(HAVE_FINITEF)
190 AC_DEFINE(HAVE_FINITE)
191 AC_DEFINE(HAVE_FREXPF)
192 AC_DEFINE(HAVE_HYPOTF)
193 AC_DEFINE(HAVE_ISINF)
194 AC_DEFINE(HAVE_ISINFF)
195 AC_DEFINE(HAVE_ISNAN)
196 AC_DEFINE(HAVE_ISNANF)
197 if test x"long_double_math_on_this_cpu" = x"yes"; then
198 AC_DEFINE(HAVE_FINITEL)
199 AC_DEFINE(HAVE_ISINFL)
200 AC_DEFINE(HAVE_ISNANL)
201 fi
202 ;;
203 *-freebsd*)
204 # Check for available headers.
205 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
206 machine/endian.h machine/param.h sys/machine.h sys/types.h \
207 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
208 sys/time.h unistd.h])
209 SECTION_FLAGS='-ffunction-sections -fdata-sections'
210 AC_SUBST(SECTION_FLAGS)
211 GLIBCPP_CHECK_LINKER_FEATURES
212 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
213 GLIBCPP_CHECK_WCHAR_T_SUPPORT
214 os_include_dir="os/bsd/freebsd"
215 AC_DEFINE(HAVE_LC_MESSAGES)
216 AC_DEFINE(HAVE_DRAND48)
217 AC_DEFINE(HAVE_GETPAGESIZE)
218 AC_DEFINE(HAVE_SETENV)
219 AC_DEFINE(HAVE_SIGSETJMP)
220 AC_DEFINE(HAVE_COPYSIGN)
221 AC_DEFINE(HAVE_COPYSIGNF)
222 AC_DEFINE(HAVE_FINITEF)
223 AC_DEFINE(HAVE_FINITE)
224 AC_DEFINE(HAVE_FREXPF)
225 AC_DEFINE(HAVE_HYPOT)
226 AC_DEFINE(HAVE_HYPOTF)
227 AC_DEFINE(HAVE_ISINF)
228 AC_DEFINE(HAVE_ISNAN)
229 AC_DEFINE(HAVE_ISNANF)
230 if test x"long_double_math_on_this_cpu" = x"yes"; then
231 AC_DEFINE(HAVE_FINITEL)
232 AC_DEFINE(HAVE_ISINFL)
233 AC_DEFINE(HAVE_ISNANL)
234 fi
235 ;;
236 *-mingw32*)
237 AC_CHECK_HEADERS([sys/types.h locale.h float.h])
238 GLIBCPP_CHECK_LINKER_FEATURES
239 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
240 GLIBCPP_CHECK_WCHAR_T_SUPPORT
241 os_include_dir="os/mingw32"
242 ;;
243 *-windiss*)
244 os_include_dir="os/windiss"
245 ;;
246 changequote(,)dnl
247 *-qnx6.[12]*)
248 changequote([,])dnl
249 SECTION_FLAGS='-ffunction-sections -fdata-sections'
250 AC_SUBST(SECTION_FLAGS)
251 GLIBCPP_CHECK_LINKER_FEATURES
252 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
253 GLIBCPP_CHECK_WCHAR_T_SUPPORT
254 os_include_dir="os/qnx/qnx6.1"
255 AC_DEFINE(HAVE_COSF)
256 AC_DEFINE(HAVE_COSL)
257 AC_DEFINE(HAVE_COSHF)
258 AC_DEFINE(HAVE_COSHL)
259 AC_DEFINE(HAVE_LOGF)
260 AC_DEFINE(HAVE_LOGL)
261 AC_DEFINE(HAVE_LOG10F)
262 AC_DEFINE(HAVE_LOG10L)
263 AC_DEFINE(HAVE_SINF)
264 AC_DEFINE(HAVE_SINL)
265 AC_DEFINE(HAVE_SINHF)
266 AC_DEFINE(HAVE_SINHL)
267 ;;
268 *)
269 os_include_dir="os/newlib"
270 AC_DEFINE(HAVE_HYPOT)
271 ;;
272 esac
273
274 case "$target" in
275 *-mingw32*)
276 ;;
277 *-windiss*)
278 AC_DEFINE(HAVE_ACOSF)
279 AC_DEFINE(HAVE_ASINF)
280 AC_DEFINE(HAVE_ATAN2F)
281 AC_DEFINE(HAVE_ATANF)
282 AC_DEFINE(HAVE_CEILF)
283 AC_DEFINE(HAVE_COPYSIGN)
284 AC_DEFINE(HAVE_COPYSIGNF)
285 AC_DEFINE(HAVE_COSF)
286 AC_DEFINE(HAVE_COSHF)
287 AC_DEFINE(HAVE_EXPF)
288 AC_DEFINE(HAVE_FABSF)
289 AC_DEFINE(HAVE_FLOORF)
290 AC_DEFINE(HAVE_FMODF)
291 AC_DEFINE(HAVE_FREXPF)
292 AC_DEFINE(HAVE_LDEXPF)
293 AC_DEFINE(HAVE_LOG10F)
294 AC_DEFINE(HAVE_LOGF)
295 AC_DEFINE(HAVE_MODFF)
296 AC_DEFINE(HAVE_POWF)
297 AC_DEFINE(HAVE_SINF)
298 AC_DEFINE(HAVE_SINHF)
299 AC_DEFINE(HAVE_SQRTF)
300 AC_DEFINE(HAVE_TANF)
301 AC_DEFINE(HAVE_TANHF)
302 ;;
303 *-freebsd*)
304 # Must replicate generic section since we don't have strtof or strtold.
305 AC_DEFINE(HAVE_MMAP)
306 AC_DEFINE(HAVE_ACOSF)
307 AC_DEFINE(HAVE_ASINF)
308 AC_DEFINE(HAVE_ATAN2F)
309 AC_DEFINE(HAVE_ATANF)
310 AC_DEFINE(HAVE_CEILF)
311 AC_DEFINE(HAVE_COPYSIGN)
312 AC_DEFINE(HAVE_COPYSIGNF)
313 AC_DEFINE(HAVE_COSF)
314 AC_DEFINE(HAVE_COSHF)
315 AC_DEFINE(HAVE_EXPF)
316 AC_DEFINE(HAVE_FABSF)
317 AC_DEFINE(HAVE_FLOORF)
318 AC_DEFINE(HAVE_FMODF)
319 AC_DEFINE(HAVE_FREXPF)
320 AC_DEFINE(HAVE_LDEXPF)
321 AC_DEFINE(HAVE_LOG10F)
322 AC_DEFINE(HAVE_LOGF)
323 AC_DEFINE(HAVE_MODFF)
324 AC_DEFINE(HAVE_POWF)
325 AC_DEFINE(HAVE_SINF)
326 AC_DEFINE(HAVE_SINHF)
327 AC_DEFINE(HAVE_SQRTF)
328 AC_DEFINE(HAVE_TANF)
329 AC_DEFINE(HAVE_TANHF)
330 ;;
331 *)
332 # GLIBCPP_CHECK_STDLIB_SUPPORT
333 AC_DEFINE(HAVE_STRTOF)
334 AC_DEFINE(HAVE_STRTOLD)
335 # AC_FUNC_MMAP
336 AC_DEFINE(HAVE_MMAP)
337
338 AC_DEFINE(HAVE_ACOSF)
339 AC_DEFINE(HAVE_ASINF)
340 AC_DEFINE(HAVE_ATAN2F)
341 AC_DEFINE(HAVE_ATANF)
342 AC_DEFINE(HAVE_CEILF)
343 AC_DEFINE(HAVE_COPYSIGN)
344 AC_DEFINE(HAVE_COPYSIGNF)
345 AC_DEFINE(HAVE_COSF)
346 AC_DEFINE(HAVE_COSHF)
347 AC_DEFINE(HAVE_EXPF)
348 AC_DEFINE(HAVE_FABSF)
349 AC_DEFINE(HAVE_FLOORF)
350 AC_DEFINE(HAVE_FMODF)
351 AC_DEFINE(HAVE_FREXPF)
352 AC_DEFINE(HAVE_LDEXPF)
353 AC_DEFINE(HAVE_LOG10F)
354 AC_DEFINE(HAVE_LOGF)
355 AC_DEFINE(HAVE_MODFF)
356 AC_DEFINE(HAVE_POWF)
357 AC_DEFINE(HAVE_SINF)
358 AC_DEFINE(HAVE_SINHF)
359 AC_DEFINE(HAVE_SQRTF)
360 AC_DEFINE(HAVE_TANF)
361 AC_DEFINE(HAVE_TANHF)
362 ;;
363 esac
364
365 # At some point, we should differentiate between architectures
366 # like x86, which have long double versions, and alpha/powerpc/etc.,
367 # which don't. For the time being, punt.
368 if test x"long_double_math_on_this_cpu" = x"yes"; then
369 AC_DEFINE(HAVE_ACOSL)
370 AC_DEFINE(HAVE_ASINL)
371 AC_DEFINE(HAVE_ATAN2L)
372 AC_DEFINE(HAVE_ATANL)
373 AC_DEFINE(HAVE_CEILL)
374 AC_DEFINE(HAVE_COPYSIGNL)
375 AC_DEFINE(HAVE_COSL)
376 AC_DEFINE(HAVE_COSHL)
377 AC_DEFINE(HAVE_EXPL)
378 AC_DEFINE(HAVE_FABSL)
379 AC_DEFINE(HAVE_FLOORL)
380 AC_DEFINE(HAVE_FMODL)
381 AC_DEFINE(HAVE_FREXPL)
382 AC_DEFINE(HAVE_LDEXPL)
383 AC_DEFINE(HAVE_LOG10L)
384 AC_DEFINE(HAVE_LOGL)
385 AC_DEFINE(HAVE_MODFL)
386 AC_DEFINE(HAVE_POWL)
387 AC_DEFINE(HAVE_SINCOSL)
388 AC_DEFINE(HAVE_SINL)
389 AC_DEFINE(HAVE_SINHL)
390 AC_DEFINE(HAVE_SQRTL)
391 AC_DEFINE(HAVE_TANL)
392 AC_DEFINE(HAVE_TANHL)
393 fi
394
395 else
396
397 # We are being configured natively. We can do more elaborate tests
398 # that include AC_TRY_COMPILE now, as the linker is assumed to be
399 # working.
400 GLIBCPP_IS_CROSS_COMPILING=0
401 CANADIAN=no
402
403 # Check for available headers.
404 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
405 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h])
406
407 GLIBCPP_CHECK_COMPILER_FEATURES
408 GLIBCPP_CHECK_LINKER_FEATURES
409 GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
410 GLIBCPP_CHECK_MATH_SUPPORT
411 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
412 GLIBCPP_CHECK_WCHAR_T_SUPPORT
413 GLIBCPP_CHECK_STDLIB_SUPPORT
414
415 # For showmanyc_helper().
416 AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
417 GLIBCPP_CHECK_POLL
418 GLIBCPP_CHECK_S_ISREG_OR_S_IFREG
419
420 AC_LC_MESSAGES
421
422 AC_TRY_COMPILE([
423 #include <setjmp.h>
424 ], [sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);],
425 [AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available. ])
426 ])
427
428 AC_FUNC_MMAP
429
430 # Establish limits on memory usage during 'make check'
431 GLIBCPP_CONFIGURE_TESTSUITE
432 fi
433
434 # This depends on the possibly-skipped linker test above.
435 GLIBCPP_ENABLE_SYMVERS([yes])
436
437 # Propagate the target-specific source directories through the build chain.
438 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
439 # uses it, and it only gets used in this file.)
440 OS_INC_SRCDIR=config/${os_include_dir}
441 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
442 AC_SUBST(OS_INC_SRCDIR)
443 AC_SUBST(ATOMICITY_INC_SRCDIR)
444
445 # Set up cross-compile flags
446 AC_SUBST(GLIBCPP_IS_CROSS_COMPILING) dnl Unused so far.
447 AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes)
448
449 AC_CACHE_SAVE
450
451 if test "${multilib}" = "yes"; then
452 multilib_arg="--enable-multilib"
453 else
454 multilib_arg=
455 fi
456
457 # Export all the install information
458 GLIBCPP_EXPORT_INSTALL_INFO
459
460 # Export all the include and flag information to Makefiles.
461 GLIBCPP_EXPORT_INCLUDES
462 GLIBCPP_EXPORT_FLAGS
463
464 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
465 grep "enable shared" > /dev/null; then
466 LIBSUPCXX_PICFLAGS=-prefer-pic
467 else
468 LIBSUPCXX_PICFLAGS=
469 fi
470 AC_SUBST(LIBSUPCXX_PICFLAGS)
471
472 # Generate the various Makefiles, include files, and scripts.
473 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
474 # and libsupc++/Makefile.am so that multilib installs will end up
475 # installed in the correct place. To work around this not being passed
476 # down from config-ml.in -> top_srcdir/Makefile.am ->
477 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
478 AC_OUTPUT(Makefile \
479 include/Makefile src/Makefile \
480 libmath/Makefile libio/Makefile libsupc++/Makefile \
481 po/Makefile testsuite/Makefile mkcheck testsuite_flags,
482 [test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
483 if test -n "$CONFIG_FILES"; then
484 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
485 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
486 # Ony modify Makefiles that are just being created.
487 case " $CONFIG_FILES" in
488 *" Makefile"*)
489 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
490 ;;
491 esac
492 case $CONFIG_FILES in
493 *src/Makefile*)
494 grep '^MULTISUBDIR =' Makefile >> src/Makefile
495 ;;
496 esac
497 case $CONFIG_FILES in
498 *libsupc++/Makefile*)
499 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
500 ;;
501 esac
502 fi
503 fi
504 chmod +x mkcheck
505 chmod +x testsuite_flags],
506 srcdir=${srcdir}
507 host=${host}
508 target=${target}
509 with_target_subdir=${with_target_subdir}
510 with_build_subdir=${with_build_subdir}
511 with_multisubdir=${with_multisubdir}
512 ac_configure_args="${multilib_arg} ${ac_configure_args}"
513 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
514 glibcpp_basedir=${glibcpp_basedir}
515 CC="${CC}"
516 CXX="${CXX}"
517 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
518 )
519 dnl In autoconf 2.5x, AC_OUTPUT is replaced by three AC_ macros:
520 dnl AC_CONFIG_FILES(Makefile \
521 dnl include/Makefile src/Makefile \
522 dnl libmath/Makefile libio/Makefile libsupc++/Makefile \
523 dnl po/Makefile testsuite/Makefile mkcheck testsuite_flags)
524 dnl AC_CONFIG_COMMANDS([default],
525 dnl [if test -n "$CONFIG_FILES"; then
526 dnl # Ony modify Makefiles that are just being created.
527 dnl case " $CONFIG_FILES" in
528 dnl *" Makefile"*)
529 dnl ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
530 dnl ;;
531 dnl esac
532 dnl case $CONFIG_FILES in
533 dnl *src/Makefile*)
534 dnl grep '^MULTISUBDIR =' Makefile >> src/Makefile
535 dnl ;;
536 dnl esac
537 dnl case $CONFIG_FILES in
538 dnl *libsupc++/Makefile*)
539 dnl grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
540 dnl ;;
541 dnl esac
542 dnl fi
543 dnl chmod +x mkcheck
544 dnl chmod +x testsuite_flags
545 dnl ],
546 dnl srcdir=${srcdir}
547 dnl host=${host}
548 dnl target=${target}
549 dnl with_multisubdir=${with_multisubdir}
550 dnl ac_configure_args="${multilib_arg} ${ac_configure_args}"
551 dnl CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
552 dnl glibcpp_basedir=${glibcpp_basedir}
553 dnl CC="${CC}"
554 dnl CXX="${CXX}"
555 dnl )
556 dnl AC_OUTPUT
557
558
559 # Sanity checking & User-visible messages.
560 # Checks down here, otherwise they get scrolled off before
561 # the user will notice.
562
563 # Trying to get more people to read documentation. Possibly remove
564 # check and warn all the time. There is no "informational" AC_MSG_
565 # macro, so these are going to be printed even when --quiet/--silent
566 # is given.
567 if test ! -f stamp-sanity-warned; then
568 touch stamp-sanity-warned
569 echo ""
570 echo "Please make certain that you read the installation information here:"
571 echo " faster => ${srcdir}/docs/html/install.html"
572 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
573 echo ""
574 echo "and the configuration information here:"
575 echo " faster => ${srcdir}/docs/html/configopts.html"
576 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
577 echo ""
578 echo "before proceeding with ${_cv_gnu_make_command}."
579 echo ""
580 fi