Commit d2caef2e by Phil Edwards

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
parent 6a4ed6c8
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,12 +12,12 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [ ...@@ -12,12 +12,12 @@ 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 else
...@@ -27,40 +27,40 @@ if test "${srcdir}" = "."; then ...@@ -27,40 +27,40 @@ if test "${srcdir}" = "."; then
toprel="${with_multisrctop}.." toprel="${with_multisrctop}.."
fi fi
fi fi
else else
toprel=".." toprel=".."
fi fi
AC_CONFIG_AUX_DIR(${srcdir}/$toprel) AC_CONFIG_AUX_DIR(${srcdir}/$toprel)
toplevel_srcdir=\${top_srcdir}/$toprel toplevel_srcdir=\${top_srcdir}/$toprel
AC_SUBST(toplevel_srcdir) 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,31 +72,29 @@ AC_ARG_WITH(cross-host, ...@@ -72,31 +72,29 @@ 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
# 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
# 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
# are probably using a cross compiler, which will not be able to fully # link an executable. This is addressed in later versions of autoconf.
# link an executable. This should really be fixed in autoconf
# itself. AC_DEFUN(LIB_AC_PROG_CC,
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
AC_DEFUN(LIB_AC_PROG_CC, dnl Fool anybody using AC_PROG_CC.
[AC_BEFORE([$0], [AC_PROG_CPP])dnl AC_PROVIDE([AC_PROG_CC])
dnl Fool anybody using AC_PROG_CC. AC_CHECK_PROG(CC, gcc, gcc)
AC_PROVIDE([AC_PROG_CC]) if test -z "$CC"; then
AC_CHECK_PROG(CC, gcc, gcc)
if test -z "$CC"; then
AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
fi fi
AC_PROG_CC_GNU AC_PROG_CC_GNU
if test $ac_cv_prog_gcc = yes; then if test $ac_cv_prog_gcc = yes; then
GCC=yes GCC=yes
dnl Check whether -g works, even if CFLAGS is set, in case the package 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 plays around with CFLAGS (such as to build both debugging and
dnl normal versions of a library), tasteless as that idea is. dnl normal versions of a library), tasteless as that idea is.
ac_test_CFLAGS="${CFLAGS+set}" ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS" ac_save_CFLAGS="$CFLAGS"
CFLAGS= CFLAGS=
...@@ -108,39 +106,37 @@ dnl normal versions of a library), tasteless as that idea is. ...@@ -108,39 +106,37 @@ dnl normal versions of a library), tasteless as that idea is.
else else
CFLAGS="-O2" CFLAGS="-O2"
fi fi
else else
GCC= GCC=
test "${CFLAGS+set}" = set || CFLAGS="-g" test "${CFLAGS+set}" = set || CFLAGS="-g"
fi fi
]) ])
LIB_AC_PROG_CC LIB_AC_PROG_CC
# Can't just call these here as g++ requires libstc++ to be built.... # Likewise for AC_PROG_CXX. We can't just call it directly because g++
# AC_PROG_CXX # will try to link in libstdc++.
AC_DEFUN(LIB_AC_PROG_CXX,
# Likewise for AC_PROG_CXX. [AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
AC_DEFUN(LIB_AC_PROG_CXX, dnl Fool anybody using AC_PROG_CXX.
[AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl AC_PROVIDE([AC_PROG_CXX])
dnl Fool anybody using AC_PROG_CXX. # Use glibcpp_CXX so that we do not cause CXX to be cached with the
AC_PROVIDE([AC_PROG_CXX]) # flags that come in CXX while configuring libstdc++. They're different
# Use glibcpp_CXX so that we do not cause CXX to be cached with the # from those used for all other target libraries. If CXX is set in
# flags that come in CXX while configuring libstdc++. They're different # the environment, respect that here.
# from those used for all other target libraries. If CXX is set in glibcpp_CXX=$CXX
# the environment, respect that here. AC_CHECK_PROGS(glibcpp_CXX, $CCC c++ g++ gcc CC cxx cc++, gcc)
glibcpp_CXX=$CXX AC_SUBST(glibcpp_CXX)
AC_CHECK_PROGS(glibcpp_CXX, $CCC c++ g++ gcc CC cxx cc++, gcc) CXX=$glibcpp_CXX
AC_SUBST(glibcpp_CXX) test -z "$glibcpp_CXX" && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
CXX=$glibcpp_CXX
test -z "$glibcpp_CXX" && AC_MSG_ERROR([no acceptable c++ found in \$PATH]) AC_PROG_CXX_GNU
AC_PROG_CXX_GNU if test $ac_cv_prog_gxx = yes; then
if test $ac_cv_prog_gxx = yes; then
GXX=yes GXX=yes
dnl Check whether -g works, even if CXXFLAGS is set, in case the package 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 plays around with CXXFLAGS (such as to build both debugging and
dnl normal versions of a library), tasteless as that idea is. dnl normal versions of a library), tasteless as that idea is.
ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_test_CXXFLAGS="${CXXFLAGS+set}"
ac_save_CXXFLAGS="$CXXFLAGS" ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS= CXXFLAGS=
...@@ -152,13 +148,13 @@ dnl normal versions of a library), tasteless as that idea is. ...@@ -152,13 +148,13 @@ dnl normal versions of a library), tasteless as that idea is.
else else
CXXFLAGS="-O2" CXXFLAGS="-O2"
fi fi
else else
GXX= GXX=
test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
fi fi
]) ])
LIB_AC_PROG_CXX LIB_AC_PROG_CXX
# For some reason, gettext needs this. # For some reason, gettext needs this.
AC_ISC_POSIX AC_ISC_POSIX
...@@ -196,7 +192,6 @@ LIB_AC_PROG_CXX ...@@ -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
#
]) ])
......
...@@ -3,6 +3,9 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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
......
This source diff could not be displayed because it is too large. You can view the blob instead.
# 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 ...@@ -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)
...@@ -331,6 +332,31 @@ glibcpp_basedir=${glibcpp_basedir} ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment