libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building CVS HEAD libtool outside of source directory


From: Ralf Wildenhues
Subject: Re: Building CVS HEAD libtool outside of source directory
Date: Sun, 21 Oct 2007 18:17:33 +0200
User-agent: Mutt/1.5.16 (2007-10-11)

* Bob Friesenhahn wrote on Sun, Oct 21, 2007 at 05:52:04PM CEST:
> On Sun, 21 Oct 2007, Ralf Wildenhues wrote:
>>
>> indicates that an old ltdl.h was used.  It seems @INCLTDL@ was
>> substituted wrongly in that Makefile.  I don't see how that can
>> happen.
>
> Must be the influence of mutant aliens.

:-)

> I see that the compiler is being executed like
>
> /usr/bin/cc -I/usr/local/include 
> -I/home/bfriesen/src/gnu/libtool-head/libltdl
>
> and I believe that the -I/usr/local/include is being picked up from 
> /usr/local/share/config.site.

Hrmpf.

> This sort of problem may be avoided by setting CONFIG_SITE to point at some 
> empty file while the tests are run.  This seems to be common for tests and 
> I believe that it is already done for the 'old' tests.  Long ago, 
> CONFIG_SITE was set to /dev/null but this caused issues for a few targets.

Please try this patch, thanks.

Cheers,
Ralf

2007-10-21  Ralf Wildenhues  <address@hidden>

        * tests/defs.m4sh (CONFIG_SITE): Set to `/nonexistent', to
        avoid config.site files.
        * tests/testsuite.at (CONFIG_SITE): Be sure to reexport it.
        Report by Bob Friesenhahn.

Index: tests/defs.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/defs.m4sh,v
retrieving revision 1.18
diff -u -r1.18 defs.m4sh
--- tests/defs.m4sh     25 Mar 2007 12:12:43 -0000      1.18
+++ tests/defs.m4sh     21 Oct 2007 16:15:44 -0000
@@ -2,7 +2,7 @@
 m4_divert_push([SCRIPT])# @configure_input@
 # defs -- Defines for Libtool testing environment.
 #
-#   Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+#   Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
 #   Written by Gord Matzigkeit, 1996
 #   Rewritten by Gary V. Vaughan, 2003
 #
@@ -42,6 +42,7 @@
 # The DJGPP port of autoconf requires config.site, to work correctly.
 if test -z "$DJGPP"; then
     CONFIG_SITE=/nonexistent
+    export CONFIG_SITE
 fi
 
 # How verbose should we be?  Default is no test output.
Index: tests/testsuite.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/testsuite.at,v
retrieving revision 1.50
diff -u -r1.50 testsuite.at
--- tests/testsuite.at  25 Mar 2007 12:12:43 -0000      1.50
+++ tests/testsuite.at  21 Oct 2007 16:15:44 -0000
@@ -33,6 +33,14 @@
   if eval \$$tool --version >/dev/null 2>&1; then :; else eval $tool=no; fi
 done
 export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF
+
+# Disable usage of config.site for autoconf, unless DJGPP is present.
+# The DJGPP port of autoconf requires config.site, to work correctly.
+if test -z "$DJGPP"; then
+    CONFIG_SITE=/nonexistent
+    export CONFIG_SITE
+fi
+
 eval `$LIBTOOL --config | grep '^EGREP='`
 eval `$LIBTOOL --config | $EGREP '^(host|host_os|host_alias|build|ECHO)='`
 configure_options=




reply via email to

[Prev in Thread] Current Thread [Next in Thread]