--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-generated-files-in-srcdir
- put copies of generated files in source dir
- intended for creating source tarballs for users
- without texinfo bison or flex.
+ put copies of generated files in source dir intended
+ for creating source tarballs for users without
+ texinfo bison or flex
--disable-largefile omit support for large files
--enable-werror-always enable -Werror despite compiler version
- --enable-checking=LIST
- enable expensive run-time checks. With LIST,
- enable only specific categories of checks.
- Categories are: yes,no,all,none,release.
- Flags are: assert,df,fold,gc,gcac,gimple,misc,
- rtlflag,rtl,runtime,tree,valgrind,types.
- --enable-coverage=LEVEL
- enable compiler's code coverage collection.
- Use to measure compiler performance and locate
- unused parts of the compiler. With LEVEL, specify
- optimization. Values are opt, noopt,
- default is noopt
- --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
+ --enable-checking[=LIST]
+ enable expensive run-time checks. With LIST, enable
+ only specific categories of checks. Categories are:
+ yes,no,all,none,release. Flags are:
+ assert,df,fold,gc,gcac,gimple,misc,
+ rtlflag,rtl,runtime,tree,valgrind,types
+ --enable-coverage[=LEVEL]
+ enable compiler's code coverage collection. Use to
+ measure compiler performance and locate unused parts
+ of the compiler. With LEVEL, specify optimization.
+ Values are opt, noopt, default is noopt
+ --enable-gather-detailed-mem-stats
+ enable detailed memory allocation stats gathering
--enable-build-with-cxx build with C++ compiler instead of C compiler
--enable-multilib enable library support for multiple ABIs
--enable-__cxa_atexit enable __cxa_atexit for C++
or 'dpd' choses which decimal floating point format
to use
--enable-fixed-point enable fixed-point arithmetic extension to C
- --enable-threads enable thread usage for target GCC
- --enable-threads=LIB use LIB thread package for target GCC
- --enable-tls enable or disable generation of tls code
- overriding the assembler check for tls support
- --enable-objc-gc enable the use of Boehm's garbage collector with
- the GNU Objective-C runtime
+ --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
+ package
+ --enable-tls enable or disable generation of tls code overriding
+ the assembler check for tls support
+ --enable-objc-gc enable the use of Boehm's garbage collector with the
+ GNU Objective-C runtime
--disable-shared don't provide a shared libgcc
--enable-languages=LIST specify which front-ends to build
--disable-rpath do not hardcode runtime library paths
arrange to use setjmp/longjmp exception handling
--enable-secureplt enable -msecure-plt by default for PowerPC
--enable-leading-mingw64-underscores
- Enable leading underscores on 64 bit mingw targets
+ enable leading underscores on 64 bit mingw targets
--enable-cld enable -mcld by default for 32bit x86
- --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
+ --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
+ x86
--disable-win32-registry
- disable lookup of installation paths in the
- Registry on Windows hosts
+ disable lookup of installation paths in the Registry
+ on Windows hosts
--enable-win32-registry enable registry lookup (default)
--enable-win32-registry=KEY
use KEY instead of GCC version as the last portion
--enable-linker-build-id
compiler will always pass --build-id to linker
--enable-maintainer-mode
- enable make rules and dependencies not useful
- (and sometimes confusing) to the casual installer
+ enable make rules and dependencies not useful (and
+ sometimes confusing) to the casual installer
--enable-version-specific-runtime-libs
- specify that runtime libraries should be
- installed in a compiler-specific directory
+ specify that runtime libraries should be installed
+ in a compiler-specific directory
--enable-plugin enable plugin support
--disable-libquadmath-support
disable libquadmath support for Fortran
--with-cpp-install-dir=DIR
install the user visible C preprocessor in DIR
(relative to PREFIX) as well as PREFIX/bin
- --with-gnu-ld arrange to work with GNU ld.
+ --with-gnu-ld arrange to work with GNU ld
--with-ld arrange to use the specified ld (full pathname)
- --with-demangler-in-ld try to use demangler in GNU ld.
+ --with-demangler-in-ld try to use demangler in GNU ld
--with-gnu-as arrange to work with GNU as
--with-as arrange to use the specified as (full pathname)
--with-stabs arrange to use stabs instead of host debug format
--with-dwarf2 force the default debug format to be DWARF 2
--with-build-sysroot=sysroot
use sysroot as the system root during the build
- --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
+ --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
--with-specs=SPECS add SPECS to driver command-line processing
--with-pkgversion=PKG Use PKG in the version string in place of "GCC"
--with-bugurl=URL Direct users to URL to report a bug
- --with-multilib-list Select multilibs (SH only)
+ --with-multilib-list select multilibs (SH only)
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
--without-libiconv-prefix don't search for libiconv in includedir and libdir
both]
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-plugin-ld=[ARG] specify the plugin linker
- --with-long-double-128 Use 128-bit long double by default.
- --with-gc={page,zone} choose the garbage collection mechanism to use
- with the compiler
+ --with-long-double-128 use 128-bit long double by default
+ --with-gc={page,zone} choose the garbage collection mechanism to use with
+ the compiler
--with-system-zlib use installed libz
--with-slibdir=DIR shared libraries in DIR [LIBDIR]
--with-linker-hash-style={sysv,gnu,both}
# Check whether --enable-fixed-point was given.
if test "${enable_fixed_point+set}" = set; then :
enableval=$enable_fixed_point;
-
else
case $target in
# Specify the local prefix
local_prefix=
AC_ARG_WITH(local-prefix,
-[ --with-local-prefix=DIR specifies directory to put local include],
+[AS_HELP_STRING([--with-local-prefix=DIR],
+ [specifies directory to put local include])],
[case "${withval}" in
yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
no) ;;
gcc_gxx_include_dir=
# Specify the g++ header file directory
AC_ARG_WITH(gxx-include-dir,
-[ --with-gxx-include-dir=DIR
- specifies directory to put g++ header files],
+[AS_HELP_STRING([--with-gxx-include-dir=DIR],
+ [specifies directory to put g++ header files])],
[case "${withval}" in
yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
no) ;;
fi
AC_ARG_WITH(cpp_install_dir,
-[ --with-cpp-install-dir=DIR
- install the user visible C preprocessor in DIR
- (relative to PREFIX) as well as PREFIX/bin],
+[AC_HELP_STRING([--with-cpp-install-dir=DIR],
+ [install the user visible C preprocessor in DIR
+ (relative to PREFIX) as well as PREFIX/bin])],
[if test x$withval = xyes; then
AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
elif test x$withval != xno; then
AC_MSG_CHECKING([whether to place generated files in the source directory])
dnl generated-files-in-srcdir is disabled by default
AC_ARG_ENABLE(generated-files-in-srcdir,
-[ --enable-generated-files-in-srcdir
- put copies of generated files in source dir
- intended for creating source tarballs for users
- without texinfo bison or flex.],
+ [AS_HELP_STRING([--enable-generated-files-in-srcdir],
+ [put copies of generated files in source dir
+ intended for creating source tarballs for users
+ without texinfo bison or flex])],
generated_files_in_srcdir=$enableval,
generated_files_in_srcdir=no)
# With GNU ld
AC_ARG_WITH(gnu-ld,
-[ --with-gnu-ld arrange to work with GNU ld.],
+[AS_HELP_STRING([--with-gnu-ld], [arrange to work with GNU ld])],
gnu_ld_flag="$with_gnu_ld",
gnu_ld_flag=no)
# With pre-defined ld
AC_ARG_WITH(ld,
-[ --with-ld arrange to use the specified ld (full pathname)],
+[AS_HELP_STRING([--with-ld], [arrange to use the specified ld (full pathname)])],
DEFAULT_LINKER="$with_ld")
if test x"${DEFAULT_LINKER+set}" = x"set"; then
if test ! -x "$DEFAULT_LINKER"; then
# With demangler in GNU ld
AC_ARG_WITH(demangler-in-ld,
-[ --with-demangler-in-ld try to use demangler in GNU ld.],
+[AS_HELP_STRING([--with-demangler-in-ld], [try to use demangler in GNU ld])],
demangler_in_ld="$with_demangler_in_ld",
demangler_in_ld=no)
# With GNU as
AC_ARG_WITH(gnu-as,
-[ --with-gnu-as arrange to work with GNU as],
+[AS_HELP_STRING([--with-gnu-as], [arrange to work with GNU as])],
gas_flag="$with_gnu_as",
gas_flag=no)
AC_ARG_WITH(as,
-[ --with-as arrange to use the specified as (full pathname)],
+[AS_HELP_STRING([--with-as], [arrange to use the specified as (full pathname)])],
DEFAULT_ASSEMBLER="$with_as")
if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
if test ! -x "$DEFAULT_ASSEMBLER"; then
fi
AC_ARG_ENABLE(checking,
-[ --enable-checking[=LIST]
- enable expensive run-time checks. With LIST,
- enable only specific categories of checks.
- Categories are: yes,no,all,none,release.
- Flags are: assert,df,fold,gc,gcac,gimple,misc,
- rtlflag,rtl,runtime,tree,valgrind,types.],
+[AS_HELP_STRING([[--enable-checking[=LIST]]],
+ [enable expensive run-time checks. With LIST,
+ enable only specific categories of checks.
+ Categories are: yes,no,all,none,release.
+ Flags are: assert,df,fold,gc,gcac,gimple,misc,
+ rtlflag,rtl,runtime,tree,valgrind,types])],
[ac_checking_flags="${enableval}"],[
# Determine the default checks.
if test x$is_release = x ; then
# Enable code coverage collection
AC_ARG_ENABLE(coverage,
-[ --enable-coverage[=LEVEL]
- enable compiler's code coverage collection.
- Use to measure compiler performance and locate
- unused parts of the compiler. With LEVEL, specify
- optimization. Values are opt, noopt,
- default is noopt],
+[AS_HELP_STRING([[--enable-coverage[=LEVEL]]],
+ [enable compiler's code coverage collection.
+ Use to measure compiler performance and locate
+ unused parts of the compiler. With LEVEL, specify
+ optimization. Values are opt, noopt,
+ default is noopt])],
[case "${enableval}" in
yes|noopt)
coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
AC_SUBST(coverage_flags)
AC_ARG_ENABLE(gather-detailed-mem-stats,
-[ --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering], [],
+[AS_HELP_STRING([--enable-gather-detailed-mem-stats],
+ [enable detailed memory allocation stats gathering])], [],
[enable_gather_detailed_mem_stats=no])
if test x$enable_gather_detailed_mem_stats = xyes ; then
AC_DEFINE(GATHER_STATISTICS, 1,
# See if we are building gcc with C++.
AC_ARG_ENABLE(build-with-cxx,
-[ --enable-build-with-cxx build with C++ compiler instead of C compiler],
+[AS_HELP_STRING([--enable-build-with-cxx],
+ [build with C++ compiler instead of C compiler])],
ENABLE_BUILD_WITH_CXX=$enableval,
ENABLE_BUILD_WITH_CXX=no)
AC_SUBST(ENABLE_BUILD_WITH_CXX)
# With stabs
AC_ARG_WITH(stabs,
-[ --with-stabs arrange to use stabs instead of host debug format],
+[AS_HELP_STRING([--with-stabs],
+ [arrange to use stabs instead of host debug format])],
stabs="$with_stabs",
stabs=no)
# Determine whether or not multilibs are enabled.
AC_ARG_ENABLE(multilib,
-[ --enable-multilib enable library support for multiple ABIs],
+[AS_HELP_STRING([--enable-multilib],
+ [enable library support for multiple ABIs])],
[], [enable_multilib=yes])
AC_SUBST(enable_multilib)
# Enable __cxa_atexit for C++.
AC_ARG_ENABLE(__cxa_atexit,
-[ --enable-__cxa_atexit enable __cxa_atexit for C++],
+[AS_HELP_STRING([--enable-__cxa_atexit], [enable __cxa_atexit for C++])],
[], [])
# Enable C extension for decimal float if target supports it.
# Enable C extension for fixed-point arithmetic.
AC_ARG_ENABLE(fixed-point,
-[ --enable-fixed-point enable fixed-point arithmetic extension to C],
-[
-],
+[AS_HELP_STRING([--enable-fixed-point],
+ [enable fixed-point arithmetic extension to C])],
+[],
[
case $target in
mips*-*-*)
# Pass with no value to take the default
# Pass with a value to specify a thread package
AC_ARG_ENABLE(threads,
-[ --enable-threads enable thread usage for target GCC
- --enable-threads=LIB use LIB thread package for target GCC],,
+[AS_HELP_STRING([[--enable-threads[=LIB]]],
+ [enable thread usage for target GCC,
+ using LIB thread package])],,
[enable_threads=''])
AC_ARG_ENABLE(tls,
-[ --enable-tls enable or disable generation of tls code
- overriding the assembler check for tls support],
+[AS_HELP_STRING([--enable-tls],
+ [enable or disable generation of tls code
+ overriding the assembler check for tls support])],
[
case $enable_tls in
yes | no) ;;
], [enable_tls=''])
AC_ARG_ENABLE(objc-gc,
-[ --enable-objc-gc enable the use of Boehm's garbage collector with
- the GNU Objective-C runtime],
+[AS_HELP_STRING([--enable-objc-gc],
+ [enable the use of Boehm's garbage collector with
+ the GNU Objective-C runtime])],
if test x$enable_objc_gc = xno; then
objc_boehm_gc=''
else
objc_boehm_gc='')
AC_ARG_WITH(dwarf2,
-[ --with-dwarf2 force the default debug format to be DWARF 2],
+[AS_HELP_STRING([--with-dwarf2], [force the default debug format to be DWARF 2])],
dwarf2="$with_dwarf2",
dwarf2=no)
AC_ARG_ENABLE(shared,
-[ --disable-shared don't provide a shared libgcc],
+[AS_HELP_STRING([--disable-shared], [don't provide a shared libgcc])],
[
case $enable_shared in
yes | no) ;;
AC_SUBST(enable_shared)
AC_ARG_WITH(build-sysroot,
- [ --with-build-sysroot=sysroot
- use sysroot as the system root during the build])
+ [AS_HELP_STRING([--with-build-sysroot=sysroot],
+ [use sysroot as the system root during the build])])
AC_ARG_WITH(sysroot,
-[ --with-sysroot[=DIR] Search for usr/lib, usr/include, et al, within DIR.],
+[AS_HELP_STRING([[--with-sysroot[=DIR]]],
+ [search for usr/lib, usr/include, et al, within DIR])],
[
case ${with_sysroot} in
yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
# Sanity check enable_languages in case someone does not run the toplevel
# configure # script.
AC_ARG_ENABLE(languages,
-[ --enable-languages=LIST specify which front-ends to build],
+[AS_HELP_STRING([--enable-languages=LIST], [specify which front-ends to build])],
[case ,${enable_languages}, in
,,|,yes,)
# go safe -- we cannot be much sure without the toplevel
[enable_languages=c])
AC_ARG_WITH(multilib-list,
-[ --with-multilib-list Select multilibs (SH only)],
+[AS_HELP_STRING([--with-multilib-list], [select multilibs (SH only)])],
:,
with_multilib_list=default)
# With Setjmp/Longjmp based exception handling.
AC_ARG_ENABLE(sjlj-exceptions,
-[ --enable-sjlj-exceptions
- arrange to use setjmp/longjmp exception handling],
+[AS_HELP_STRING([--enable-sjlj-exceptions],
+ [arrange to use setjmp/longjmp exception handling])],
[case $target in
*-*-hpux10*)
if test $enableval != yes; then
esac
AC_ARG_ENABLE(secureplt,
-[ --enable-secureplt enable -msecure-plt by default for PowerPC],
+[AS_HELP_STRING([--enable-secureplt],
+ [enable -msecure-plt by default for PowerPC])],
[], [])
AC_ARG_ENABLE(leading-mingw64-underscores,
AS_HELP_STRING([--enable-leading-mingw64-underscores],
- [Enable leading underscores on 64 bit mingw targets]),
+ [enable leading underscores on 64 bit mingw targets]),
[],[])
AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
[AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
[Define if we should use leading underscore on 64 bit mingw targets])])
AC_ARG_ENABLE(cld,
-[ --enable-cld enable -mcld by default for 32bit x86], [],
+[AS_HELP_STRING([--enable-cld], [enable -mcld by default for 32bit x86])], [],
[enable_cld=no])
AC_ARG_ENABLE(frame-pointer,
-[ --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86], [],
+[AS_HELP_STRING([--enable-frame-pointer],
+ [enable -fno-omit-frame-pointer by default for 32bit x86])], [],
[
case $target_os in
linux* | darwin[[8912]]*)
# Windows32 Registry support for specifying GCC installation paths.
AC_ARG_ENABLE(win32-registry,
-[ --disable-win32-registry
- disable lookup of installation paths in the
- Registry on Windows hosts
- --enable-win32-registry enable registry lookup (default)
- --enable-win32-registry=KEY
- use KEY instead of GCC version as the last portion
- of the registry key],,)
+[AS_HELP_STRING([--disable-win32-registry],
+ [disable lookup of installation paths in the
+ Registry on Windows hosts])
+AS_HELP_STRING([--enable-win32-registry], [enable registry lookup (default)])
+AS_HELP_STRING([--enable-win32-registry=KEY],
+ [use KEY instead of GCC version as the last portion
+ of the registry key])],,)
case $host_os in
win32 | pe | cygwin* | mingw32* | uwin*)
ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
PLUGIN_LD=`basename $gcc_cv_ld`
AC_ARG_WITH(plugin-ld,
-[ --with-plugin-ld=[[ARG]] specify the plugin linker],
+[AS_HELP_STRING([[--with-plugin-ld=[ARG]]], [specify the plugin linker])],
[if test x"$withval" != x; then
ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
PLUGIN_LD="$withval"
fi
AC_ARG_ENABLE(linker-build-id,
-[ --enable-linker-build-id
- compiler will always pass --build-id to linker],
+[AS_HELP_STRING([--enable-linker-build-id],
+ [compiler will always pass --build-id to linker])],
[],
enable_linker_build_id=no)
s390*-*-linux* | \
alpha*-*-linux*)
AC_ARG_WITH(long-double-128,
-[ --with-long-double-128 Use 128-bit long double by default.],
+ [AS_HELP_STRING([--with-long-double-128],
+ [use 128-bit long double by default])],
gcc_cv_target_ldbl128="$with_long_double_128",
[[gcc_cv_target_ldbl128=no
grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
# Find out what GC implementation we want, or may, use.
AC_ARG_WITH(gc,
-[ --with-gc={page,zone} choose the garbage collection mechanism to use
- with the compiler],
+[AS_HELP_STRING([--with-gc={page,zone}],
+ [choose the garbage collection mechanism to use
+ with the compiler])],
[case "$withval" in
page)
GGC=ggc-$withval
zlibdir=-L../zlib
zlibinc="-I\$(srcdir)/../zlib"
AC_ARG_WITH(system-zlib,
-[ --with-system-zlib use installed libz],
+[AS_HELP_STRING([--with-system-zlib], [use installed libz])],
zlibdir=
zlibinc=
)
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
dnl maintainer-mode is disabled by default
AC_ARG_ENABLE(maintainer-mode,
-[ --enable-maintainer-mode
- enable make rules and dependencies not useful
- (and sometimes confusing) to the casual installer],
+[AS_HELP_STRING([--enable-maintainer-mode],
+ [enable make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer])],
maintainer_mode=$enableval,
maintainer_mode=no)
# Find a directory in which to install a shared libgcc.
AC_ARG_ENABLE(version-specific-runtime-libs,
-[ --enable-version-specific-runtime-libs
- specify that runtime libraries should be
- installed in a compiler-specific directory])
+[AS_HELP_STRING([--enable-version-specific-runtime-libs],
+ [specify that runtime libraries should be
+ installed in a compiler-specific directory])])
AC_ARG_WITH(slibdir,
-[ --with-slibdir=DIR shared libraries in DIR [[LIBDIR]]],
+[AS_HELP_STRING([--with-slibdir=DIR], [shared libraries in DIR @<:@LIBDIR@:>@])],
slibdir="$with_slibdir",
if test "${enable_version_specific_runtime_libs+set}" = set; then
slibdir='$(libsubdir)'
# Check for plugin support
AC_ARG_ENABLE(plugin,
-[ --enable-plugin enable plugin support],
+[AS_HELP_STRING([--enable-plugin], [enable plugin support])],
enable_plugin=$enableval,
enable_plugin=yes; default_plugin=yes)