Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 53827 invoked from network); 13 Mar 2004 18:16:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Mar 2004 18:16:19 -0000 Received: (qmail 26878 invoked by uid 500); 13 Mar 2004 18:16:10 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 26838 invoked by uid 500); 13 Mar 2004 18:16:09 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Delivered-To: moderator for dev@apr.apache.org Received: (qmail 21367 invoked from network); 13 Mar 2004 18:05:35 -0000 To: dev@apr.apache.org Subject: [patch] CVS buildconf - trouble finding libtool.m4 (Cygwin) From: jari.aalto@poboxes.com (Jari Aalto+mail.linux) Organization: Private Date: Sat, 13 Mar 2004 20:18:10 +0200 Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (windows-nt) (i386-msvc-nt5.0.2195) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Under Cygwin things are in ittle different places and ./buildconf has trouble finding the libtool. I propose the following path. It does not change any existing code, but adds few check. root@w2kpicasso:/usr/src/cvs-source/apr# cvs diff -u buildconf Index: buildconf =================================================================== RCS file: /home/cvspublic/apr/buildconf,v retrieving revision 1.29 diff -u -IId: -u -r1.29 buildconf --- buildconf 28 Feb 2004 18:31:41 -0000 1.29 +++ buildconf 13 Mar 2004 18:03:29 -0000 @@ -46,7 +46,19 @@ ltfile=`pwd`/libtool.m4 else ltpath=`dirname $libtoolize` - ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4} + ltpath=$ltpath/../share/aclocal + + for dir in $ltpath \ + /usr/autotool/devel/share/aclocal \ + /usr/autotool/stable/share/aclocal \ + /usr/local/share/aclocal + do + if [ -d $dir ]; then + ltpath=$dir + fi + done + + ltfile=${LIBTOOL_M4-$ltpath/libtool.m4} fi if [ ! -f $ltfile ]; then -- http://tiny-tools.sourceforge.net/ Swatch @time http://www.mir.com.my/iTime/itime.htm http://www.ryanthiessen.com/swatch/resources.htm Use Licenses! http://www.linuxjournal.com/article.php?sid=6225 Which Licence? http://www.linuxjournal.com/article.php?sid=4825 OSI Licences http://www.opensource.org/licenses/