mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-22 13:44:52 +08:00
acinclude.m4 (GLIBCPP_CONFIGURE): Make indentation/spacing uniform.
2002-03-18 Phil Edwards <pme@gcc.gnu.org> * acinclude.m4 (GLIBCPP_CONFIGURE): Make indentation/spacing uniform. * configure.in: Add comments pointing the way for autoconf 2.5x. * aclocal.m4, config.h.in, configure: Regenerate. From-SVN: r51007
This commit is contained in:
parent
6a4ed6c8a9
commit
d2caef2e8b
@ -1,3 +1,9 @@
|
|||||||
|
2002-03-18 Phil Edwards <pme@gcc.gnu.org>
|
||||||
|
|
||||||
|
* acinclude.m4 (GLIBCPP_CONFIGURE): Make indentation/spacing uniform.
|
||||||
|
* configure.in: Add comments pointing the way for autoconf 2.5x.
|
||||||
|
* aclocal.m4, config.h.in, configure: Regenerate.
|
||||||
|
|
||||||
2002-03-15 Philipp Thomas <pthomas@suse.de>
|
2002-03-15 Philipp Thomas <pthomas@suse.de>
|
||||||
|
|
||||||
* include/backward/hash_map.h: hash, hashtable, hash_map and
|
* include/backward/hash_map.h: hash, hashtable, hash_map and
|
||||||
|
@ -12,55 +12,55 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
|
|||||||
*) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
|
*) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
|
||||||
esac], [multilib=yes])dnl
|
esac], [multilib=yes])dnl
|
||||||
|
|
||||||
# When building with srcdir == objdir, links to the source files will
|
# When building with srcdir == objdir, links to the source files will
|
||||||
# be created in directories within the target_subdir. We have to
|
# be created in directories within the target_subdir. We have to
|
||||||
# adjust toplevel_srcdir accordingly, so that configure finds
|
# adjust toplevel_srcdir accordingly, so that configure finds
|
||||||
# install-sh and other auxiliary files that live in the top-level
|
# install-sh and other auxiliary files that live in the top-level
|
||||||
# source directory.
|
# source directory.
|
||||||
if test "${srcdir}" = "."; then
|
if test "${srcdir}" = "."; then
|
||||||
if test -z "${with_target_subdir}"; then
|
if test -z "${with_target_subdir}"; then
|
||||||
toprel=".."
|
toprel=".."
|
||||||
else
|
|
||||||
if test "${with_target_subdir}" != "."; then
|
|
||||||
toprel="${with_multisrctop}../.."
|
|
||||||
else
|
else
|
||||||
toprel="${with_multisrctop}.."
|
if test "${with_target_subdir}" != "."; then
|
||||||
|
toprel="${with_multisrctop}../.."
|
||||||
|
else
|
||||||
|
toprel="${with_multisrctop}.."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
toprel=".."
|
||||||
fi
|
fi
|
||||||
else
|
AC_CONFIG_AUX_DIR(${srcdir}/$toprel)
|
||||||
toprel=".."
|
toplevel_srcdir=\${top_srcdir}/$toprel
|
||||||
fi
|
AC_SUBST(toplevel_srcdir)
|
||||||
AC_CONFIG_AUX_DIR(${srcdir}/$toprel)
|
|
||||||
toplevel_srcdir=\${top_srcdir}/$toprel
|
|
||||||
AC_SUBST(toplevel_srcdir)
|
|
||||||
|
|
||||||
# Export build and source directories.
|
# Export build and source directories.
|
||||||
# These need to be absolute paths, yet at the same time need to
|
# These need to be absolute paths, yet at the same time need to
|
||||||
# canonicalize only relative paths, because then amd will not unmount
|
# canonicalize only relative paths, because then amd will not unmount
|
||||||
# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
|
# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
|
||||||
glibcpp_builddir=`pwd`
|
glibcpp_builddir=`pwd`
|
||||||
case $srcdir in
|
case $srcdir in
|
||||||
[\\/$]* | ?:[\\/]*) glibcpp_srcdir=${srcdir} ;;
|
[\\/$]* | ?:[\\/]*) glibcpp_srcdir=${srcdir} ;;
|
||||||
*) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
|
*) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(glibcpp_builddir)
|
AC_SUBST(glibcpp_builddir)
|
||||||
AC_SUBST(glibcpp_srcdir)
|
AC_SUBST(glibcpp_srcdir)
|
||||||
|
|
||||||
dnl This is here just to satisfy automake.
|
dnl This is here just to satisfy automake.
|
||||||
ifelse(not,equal,[AC_CONFIG_AUX_DIR(..)])
|
ifelse(not,equal,[AC_CONFIG_AUX_DIR(..)])
|
||||||
|
|
||||||
AC_PROG_AWK
|
AC_PROG_AWK
|
||||||
# Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
|
# Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
|
||||||
# be 'cp -p' if linking isn't available.
|
# be 'cp -p' if linking isn't available.
|
||||||
#ac_cv_prog_LN_S='cp -p'
|
#ac_cv_prog_LN_S='cp -p'
|
||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
|
|
||||||
# We use these options to decide which functions to include.
|
# We use these options to decide which functions to include.
|
||||||
AC_ARG_WITH(target-subdir,
|
AC_ARG_WITH(target-subdir,
|
||||||
[ --with-target-subdir=SUBDIR
|
[ --with-target-subdir=SUBDIR
|
||||||
configuring in a subdirectory])
|
configuring in a subdirectory])
|
||||||
AC_ARG_WITH(cross-host,
|
AC_ARG_WITH(cross-host,
|
||||||
[ --with-cross-host=HOST configuring with a cross compiler])
|
[ --with-cross-host=HOST configuring with a cross compiler])
|
||||||
|
|
||||||
glibcpp_basedir=$srcdir/$toprel/$1/libstdc++-v3
|
glibcpp_basedir=$srcdir/$toprel/$1/libstdc++-v3
|
||||||
AC_SUBST(glibcpp_basedir)
|
AC_SUBST(glibcpp_basedir)
|
||||||
@ -72,96 +72,92 @@ AC_ARG_WITH(cross-host,
|
|||||||
ifdef([AC_PROG_CXX_G],[],[define([AC_PROG_CXX_G],defn([_AC_PROG_CXX_G]))])
|
ifdef([AC_PROG_CXX_G],[],[define([AC_PROG_CXX_G],defn([_AC_PROG_CXX_G]))])
|
||||||
ifdef([AC_PROG_CXX_GNU],[],[define([AC_PROG_CXX_GNU],defn([_AC_PROG_CXX_GNU]))])
|
ifdef([AC_PROG_CXX_GNU],[],[define([AC_PROG_CXX_GNU],defn([_AC_PROG_CXX_GNU]))])
|
||||||
|
|
||||||
# AC_PROG_CC
|
# AC_PROG_CC
|
||||||
|
# FIXME: We temporarily define our own version of AC_PROG_CC. This is
|
||||||
|
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
|
||||||
|
# are probably using a cross compiler, which will not be able to fully
|
||||||
|
# link an executable. This is addressed in later versions of autoconf.
|
||||||
|
|
||||||
# FIXME: We temporarily define our own version of AC_PROG_CC. This is
|
AC_DEFUN(LIB_AC_PROG_CC,
|
||||||
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
|
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
|
||||||
# are probably using a cross compiler, which will not be able to fully
|
dnl Fool anybody using AC_PROG_CC.
|
||||||
# link an executable. This should really be fixed in autoconf
|
AC_PROVIDE([AC_PROG_CC])
|
||||||
# itself.
|
AC_CHECK_PROG(CC, gcc, gcc)
|
||||||
|
if test -z "$CC"; then
|
||||||
AC_DEFUN(LIB_AC_PROG_CC,
|
AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
|
||||||
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
|
test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
|
||||||
dnl Fool anybody using AC_PROG_CC.
|
|
||||||
AC_PROVIDE([AC_PROG_CC])
|
|
||||||
AC_CHECK_PROG(CC, gcc, gcc)
|
|
||||||
if test -z "$CC"; then
|
|
||||||
AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
|
|
||||||
test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_PROG_CC_GNU
|
|
||||||
|
|
||||||
if test $ac_cv_prog_gcc = yes; then
|
|
||||||
GCC=yes
|
|
||||||
dnl Check whether -g works, even if CFLAGS is set, in case the package
|
|
||||||
dnl plays around with CFLAGS (such as to build both debugging and
|
|
||||||
dnl normal versions of a library), tasteless as that idea is.
|
|
||||||
ac_test_CFLAGS="${CFLAGS+set}"
|
|
||||||
ac_save_CFLAGS="$CFLAGS"
|
|
||||||
CFLAGS=
|
|
||||||
AC_PROG_CC_G
|
|
||||||
if test "$ac_test_CFLAGS" = set; then
|
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
|
||||||
elif test $ac_cv_prog_cc_g = yes; then
|
|
||||||
CFLAGS="-g -O2"
|
|
||||||
else
|
|
||||||
CFLAGS="-O2"
|
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
GCC=
|
|
||||||
test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
LIB_AC_PROG_CC
|
AC_PROG_CC_GNU
|
||||||
|
|
||||||
# Can't just call these here as g++ requires libstc++ to be built....
|
if test $ac_cv_prog_gcc = yes; then
|
||||||
# AC_PROG_CXX
|
GCC=yes
|
||||||
|
dnl Check whether -g works, even if CFLAGS is set, in case the package
|
||||||
# Likewise for AC_PROG_CXX.
|
dnl plays around with CFLAGS (such as to build both debugging and
|
||||||
AC_DEFUN(LIB_AC_PROG_CXX,
|
dnl normal versions of a library), tasteless as that idea is.
|
||||||
[AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
|
ac_test_CFLAGS="${CFLAGS+set}"
|
||||||
dnl Fool anybody using AC_PROG_CXX.
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
AC_PROVIDE([AC_PROG_CXX])
|
CFLAGS=
|
||||||
# Use glibcpp_CXX so that we do not cause CXX to be cached with the
|
AC_PROG_CC_G
|
||||||
# flags that come in CXX while configuring libstdc++. They're different
|
if test "$ac_test_CFLAGS" = set; then
|
||||||
# from those used for all other target libraries. If CXX is set in
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
# the environment, respect that here.
|
elif test $ac_cv_prog_cc_g = yes; then
|
||||||
glibcpp_CXX=$CXX
|
CFLAGS="-g -O2"
|
||||||
AC_CHECK_PROGS(glibcpp_CXX, $CCC c++ g++ gcc CC cxx cc++, gcc)
|
else
|
||||||
AC_SUBST(glibcpp_CXX)
|
CFLAGS="-O2"
|
||||||
CXX=$glibcpp_CXX
|
fi
|
||||||
test -z "$glibcpp_CXX" && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
|
|
||||||
|
|
||||||
AC_PROG_CXX_GNU
|
|
||||||
|
|
||||||
if test $ac_cv_prog_gxx = yes; then
|
|
||||||
GXX=yes
|
|
||||||
dnl Check whether -g works, even if CXXFLAGS is set, in case the package
|
|
||||||
dnl plays around with CXXFLAGS (such as to build both debugging and
|
|
||||||
dnl normal versions of a library), tasteless as that idea is.
|
|
||||||
ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
|
||||||
ac_save_CXXFLAGS="$CXXFLAGS"
|
|
||||||
CXXFLAGS=
|
|
||||||
AC_PROG_CXX_G
|
|
||||||
if test "$ac_test_CXXFLAGS" = set; then
|
|
||||||
CXXFLAGS="$ac_save_CXXFLAGS"
|
|
||||||
elif test $ac_cv_prog_cxx_g = yes; then
|
|
||||||
CXXFLAGS="-g -O2"
|
|
||||||
else
|
else
|
||||||
CXXFLAGS="-O2"
|
GCC=
|
||||||
|
test "${CFLAGS+set}" = set || CFLAGS="-g"
|
||||||
fi
|
fi
|
||||||
else
|
])
|
||||||
GXX=
|
|
||||||
test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
LIB_AC_PROG_CXX
|
LIB_AC_PROG_CC
|
||||||
|
|
||||||
# For some reason, gettext needs this.
|
# Likewise for AC_PROG_CXX. We can't just call it directly because g++
|
||||||
AC_ISC_POSIX
|
# will try to link in libstdc++.
|
||||||
|
AC_DEFUN(LIB_AC_PROG_CXX,
|
||||||
|
[AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
|
||||||
|
dnl Fool anybody using AC_PROG_CXX.
|
||||||
|
AC_PROVIDE([AC_PROG_CXX])
|
||||||
|
# Use glibcpp_CXX so that we do not cause CXX to be cached with the
|
||||||
|
# flags that come in CXX while configuring libstdc++. They're different
|
||||||
|
# from those used for all other target libraries. If CXX is set in
|
||||||
|
# the environment, respect that here.
|
||||||
|
glibcpp_CXX=$CXX
|
||||||
|
AC_CHECK_PROGS(glibcpp_CXX, $CCC c++ g++ gcc CC cxx cc++, gcc)
|
||||||
|
AC_SUBST(glibcpp_CXX)
|
||||||
|
CXX=$glibcpp_CXX
|
||||||
|
test -z "$glibcpp_CXX" && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
|
||||||
|
|
||||||
|
AC_PROG_CXX_GNU
|
||||||
|
|
||||||
|
if test $ac_cv_prog_gxx = yes; then
|
||||||
|
GXX=yes
|
||||||
|
dnl Check whether -g works, even if CXXFLAGS is set, in case the package
|
||||||
|
dnl plays around with CXXFLAGS (such as to build both debugging and
|
||||||
|
dnl normal versions of a library), tasteless as that idea is.
|
||||||
|
ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
||||||
|
ac_save_CXXFLAGS="$CXXFLAGS"
|
||||||
|
CXXFLAGS=
|
||||||
|
AC_PROG_CXX_G
|
||||||
|
if test "$ac_test_CXXFLAGS" = set; then
|
||||||
|
CXXFLAGS="$ac_save_CXXFLAGS"
|
||||||
|
elif test $ac_cv_prog_cxx_g = yes; then
|
||||||
|
CXXFLAGS="-g -O2"
|
||||||
|
else
|
||||||
|
CXXFLAGS="-O2"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
GXX=
|
||||||
|
test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
LIB_AC_PROG_CXX
|
||||||
|
|
||||||
|
# For some reason, gettext needs this.
|
||||||
|
AC_ISC_POSIX
|
||||||
|
|
||||||
AC_CHECK_TOOL(AS, as)
|
AC_CHECK_TOOL(AS, as)
|
||||||
AC_CHECK_TOOL(AR, ar)
|
AC_CHECK_TOOL(AR, ar)
|
||||||
@ -196,7 +192,6 @@ LIB_AC_PROG_CXX
|
|||||||
# addition to possibly modifying the same flags, it also sets up symlinks.
|
# addition to possibly modifying the same flags, it also sets up symlinks.
|
||||||
GLIBCPP_CHECK_TARGET
|
GLIBCPP_CHECK_TARGET
|
||||||
|
|
||||||
#
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
788
libstdc++-v3/aclocal.m4
vendored
788
libstdc++-v3/aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,9 @@
|
|||||||
/* Define if you have a working `mmap' system call. */
|
/* Define if you have a working `mmap' system call. */
|
||||||
#undef HAVE_MMAP
|
#undef HAVE_MMAP
|
||||||
|
|
||||||
|
/* Define if you need to in order for stat and other things to work. */
|
||||||
|
#undef _POSIX_SOURCE
|
||||||
|
|
||||||
// Define if GCC supports weak symbols.
|
// Define if GCC supports weak symbols.
|
||||||
#undef _GLIBCPP_SUPPORTS_WEAK
|
#undef _GLIBCPP_SUPPORTS_WEAK
|
||||||
|
|
||||||
@ -699,9 +702,6 @@
|
|||||||
/* Define if you have the <nan.h> header file. */
|
/* Define if you have the <nan.h> header file. */
|
||||||
#undef HAVE_NAN_H
|
#undef HAVE_NAN_H
|
||||||
|
|
||||||
/* Define if you have the <stdlib.h> header file. */
|
|
||||||
#undef HAVE_STDLIB_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/isa_defs.h> header file. */
|
/* Define if you have the <sys/isa_defs.h> header file. */
|
||||||
#undef HAVE_SYS_ISA_DEFS_H
|
#undef HAVE_SYS_ISA_DEFS_H
|
||||||
|
|
||||||
@ -711,9 +711,6 @@
|
|||||||
/* Define if you have the <sys/resource.h> header file. */
|
/* Define if you have the <sys/resource.h> header file. */
|
||||||
#undef HAVE_SYS_RESOURCE_H
|
#undef HAVE_SYS_RESOURCE_H
|
||||||
|
|
||||||
/* Define if you have the <sys/stat.h> header file. */
|
|
||||||
#undef HAVE_SYS_STAT_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/types.h> header file. */
|
/* Define if you have the <sys/types.h> header file. */
|
||||||
#undef HAVE_SYS_TYPES_H
|
#undef HAVE_SYS_TYPES_H
|
||||||
|
|
||||||
|
2470
libstdc++-v3/configure
vendored
2470
libstdc++-v3/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
# Process this file with autoconf to produce a configure script, like so:
|
# Process this file with autoconf to produce a configure script, like so:
|
||||||
# aclocal, autoconf, autoheader, automake
|
# aclocal && autoconf && autoheader && automake
|
||||||
|
|
||||||
AC_PREREQ(2.13)
|
AC_PREREQ(2.13)
|
||||||
AC_INIT(src/ios.cc)
|
AC_INIT(src/ios.cc)
|
||||||
@ -14,8 +14,9 @@ libtool_VERSION=4:0:0
|
|||||||
AC_SUBST(libtool_VERSION)
|
AC_SUBST(libtool_VERSION)
|
||||||
|
|
||||||
# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
|
# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
|
||||||
# AC 2.50 sets target_alias iff the user specified --target, but we use it
|
# AC 2.5x sets target_alias iff the user specified --target, but we use it
|
||||||
# everywhere, so we set it here just to be sure.
|
# everywhere, so we set it here just to be sure. In AC 2.13
|
||||||
|
# AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_SYSTEM
|
||||||
target_alias=${target_alias-$target}
|
target_alias=${target_alias-$target}
|
||||||
AC_SUBST(target_alias)
|
AC_SUBST(target_alias)
|
||||||
@ -24,7 +25,7 @@ AM_INIT_AUTOMAKE($PACKAGE, $release_VERSION)
|
|||||||
AM_CONFIG_HEADER(config.h)
|
AM_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
# Runs configure.host and configure.target, as well as finds CC, CXX
|
# Runs configure.host and configure.target, as well as finds CC, CXX
|
||||||
# and assorted other critical bits. Have to run this before the
|
# and assorted other critical bits. Have to run this before the
|
||||||
# GLIBCPP_ENABLE_* macros below.
|
# GLIBCPP_ENABLE_* macros below.
|
||||||
GLIBCPP_CONFIGURE(.)
|
GLIBCPP_CONFIGURE(.)
|
||||||
|
|
||||||
@ -331,6 +332,31 @@ glibcpp_basedir=${glibcpp_basedir}
|
|||||||
CC="${CC}"
|
CC="${CC}"
|
||||||
CXX="${CXX}"
|
CXX="${CXX}"
|
||||||
)
|
)
|
||||||
|
dnl In autoconf 2.5x, AC_OUTPUT is replaced by three AC_ macros:
|
||||||
|
dnl AC_CONFIG_FILES(Makefile \
|
||||||
|
dnl include/Makefile src/Makefile \
|
||||||
|
dnl libmath/Makefile libio/Makefile libsupc++/Makefile \
|
||||||
|
dnl po/Makefile testsuite/Makefile mkcheck testsuite_flags)
|
||||||
|
dnl AC_CONFIG_COMMANDS([default],
|
||||||
|
dnl [if test -n "$CONFIG_FILES"; then
|
||||||
|
dnl ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
|
||||||
|
dnl grep '^MULTISUBDIR =' Makefile >> src/Makefile
|
||||||
|
dnl grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
|
||||||
|
dnl fi
|
||||||
|
dnl chmod +x mkcheck
|
||||||
|
dnl chmod +x testsuite_flags
|
||||||
|
dnl ],
|
||||||
|
dnl srcdir=${srcdir}
|
||||||
|
dnl host=${host}
|
||||||
|
dnl target=${target}
|
||||||
|
dnl with_multisubdir=${with_multisubdir}
|
||||||
|
dnl ac_configure_args="${multilib_arg} ${ac_configure_args}"
|
||||||
|
dnl CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
||||||
|
dnl glibcpp_basedir=${glibcpp_basedir}
|
||||||
|
dnl CC="${CC}"
|
||||||
|
dnl CXX="${CXX}"
|
||||||
|
dnl )
|
||||||
|
dnl AC_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
# Sanity checking & User-visible messages.
|
# Sanity checking & User-visible messages.
|
||||||
|
Loading…
Reference in New Issue
Block a user