This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++-v3 bootstrap error: srcdir = objdir


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]