This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++-v3 bootstrap error: srcdir = objdir
- To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Subject: Re: libstdc++-v3 bootstrap error: srcdir = objdir
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 31 Jan 2001 01:05:05 -0200
- Cc: <libstdc++ at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <Pine.BSF.4.32.0101310317440.74244-100000@deneb.dbai.tuwien.ac.at>
On Jan 31, 2001, Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> wrote:
> configure: error: can not find install-sh or install.sh in .. ./..
Please try this patch.
Index: libstdc++-v3/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* configure.in (toplevel_srcdir): Copy magic from libiberty.
* configure: Rebuilt.
Index: libstdc++-v3/configure.in
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/configure.in,v
retrieving revision 1.50
diff -u -p -r1.50 configure.in
--- libstdc++-v3/configure.in 2001/01/30 09:18:49 1.50
+++ libstdc++-v3/configure.in 2001/01/31 03:04:34
@@ -3,7 +3,26 @@
AC_PREREQ(2.13)
AC_INIT(src/ios.cc)
-AC_CONFIG_AUX_DIR(..)
+
+# When building with srcdir == objdir, links to the source files will
+# be created in directories within the target_subdir. We have to
+# adjust toplevel_srcdir accordingly, so that configure finds
+# install-sh and other auxiliary files that live in the top-level
+# source directory.
+if test "${srcdir}" = "."; then
+ if test -z "${with_target_subdir}"; then
+ toplevel_srcdir="${srcdir}/.."
+ else
+ if test "${with_target_subdir}" != "."; then
+ toplevel_srcdir="${srcdir}/${with_multisrctop}../.."
+ else
+ toplevel_srcdir="${srcdir}/${with_multisrctop}.."
+ fi
+ fi
+else
+ toplevel_srcdir="${srcdir}/.."
+fi
+AC_CONFIG_AUX_DIR($toplevel_srcdir)
# Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
AC_CANONICAL_SYSTEM
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me