You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "Jari Aalto+mail.linux" <ja...@poboxes.com> on 2004/03/13 19:18:10 UTC

[patch] CVS buildconf - trouble finding libtool.m4 (Cygwin)


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/