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]
Other format: [Raw text]

Re: make install fails on 3.3 branch in libffi


Christian Cornelssen <ccorn@cs.tu-berlin.de> writes:

|> Hi,
|> 
|> On Tue, 28 Jan 2003, Christian Cornelssen wrote:
|> 
|> > [bullshit]
|> 
|> Sorry.  The problem is that `Makefile.in' contains
|> (presumably from Automake)
|> 
|> mkinstalldirs = $(SHELL) $(top_srcdir)/${libffi_basedir}/../mkinstalldirs
|> 
|> but `configure.in' sets
|> 
|> libffi_basedir=${srcdir}...
|> 
|> So we have to tell Automake not to prepend "$(top_srcdir)/".
|> Perhaps this is due to `configure.in's
|> 
|> AC_CONFIG_AUX_DIR(${libffi_basedir}/..)
|> 
|> (which may also be wrong at least when libffi_basedir=${srcdir} only).
|> Could an Autoconf expert look at this?

IMHO libffi_basedir should get ${srcdir} removed.  Could you please try
this patch?

2003-01-28  Andreas Schwab  <schwab@suse.de>

	* configure.in (libffi_basedir): Remove ${srcdir} from value and
	include trailing slash if nonempty.

--- libffi/configure.in.~1.33.~	2002-12-16 12:17:05.000000000 +0100
+++ libffi/configure.in	2003-01-28 22:41:47.000000000 +0100
@@ -22,15 +22,15 @@ dnl --with-target-subdir, --with-multisr
 
 if test "${srcdir}" = "."; then
   if test "${with_target_subdir}" != "."; then
-    libffi_basedir="${srcdir}/${with_multisrctop}.."
+    libffi_basedir="${with_multisrctop}../"
   else
-    libffi_basedir="${srcdir}/${with_multisrctop}"
+    libffi_basedir="${with_multisrctop}"
   fi
 else
-  libffi_basedir="${srcdir}"
+  libffi_basedir=
 fi
 AC_SUBST(libffi_basedir)
-AC_CONFIG_AUX_DIR(${libffi_basedir}/..)
+AC_CONFIG_AUX_DIR(${libffi_basedir}..)
 
 AC_CANONICAL_HOST
 

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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