apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r190152 - /apr/apr/trunk/buildconf
Date Sat, 11 Jun 2005 17:04:32 GMT
Author: wrowe
Date: Sat Jun 11 10:04:32 2005
New Revision: 190152

URL: http://svn.apache.org/viewcvs?rev=190152&view=rev
Log:

  * Test for preferred libtoolize15/libtoolize14 before trusting 
    that libtoolize's version is sane (at least on freebsd, it isn't)

  * Ask the selected libtoolize for the libtool_m4 path corresponding
    to *THIS* version of libtoolize, so we remain in sync.  

    LIBTOOL_M4 continues to override the user's choice [although this
    should either become unconditional, e.g. replace libtool.m4 even
    when installed by libtoolize, or become a last resort, preferring
    the libtool_m4 envvar from libtoolize over LIBTOOL_M4 user choice.

Modified:
    apr/apr/trunk/buildconf

Modified: apr/apr/trunk/buildconf
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/buildconf?rev=190152&r1=190151&r2=190152&view=diff
==============================================================================
--- apr/apr/trunk/buildconf (original)
+++ apr/apr/trunk/buildconf Sat Jun 11 10:04:32 2005
@@ -22,7 +22,7 @@
 #
 build/buildcheck.sh || exit 1
 
-libtoolize=`build/PrintPath glibtoolize libtoolize libtoolize15 libtoolize14`
+libtoolize=`build/PrintPath glibtoolize libtoolize15 libtoolize14 libtoolize`
 if [ "x$libtoolize" = "x" ]; then
     echo "libtoolize not found in path"
     exit 1
@@ -45,8 +45,14 @@
 if [ -f libtool.m4 ]; then 
    ltfile=`pwd`/libtool.m4
 else
-   ltpath=`dirname $libtoolize`
-   ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4}
+   ltfindcmd="`sed -n \"/=[^\\\`]/p;/libtool_m4=/{s/.*=/echo /p;q;}\" \
+                   < $libtoolize`"
+   ltfile=${LIBTOOL_M4-`eval "$ltfindcmd"`}
+   # Expecting the code above to be very portable, but just in case...
+   if [ -e "$ltfile" -o ! -f "$ltfile" ]; then
+     ltpath=`dirname $libtoolize`
+     ltfile=`cd $ltpath/../share/aclocal ; pwd`/libtool.m4
+   fi
 fi
   
 if [ ! -f $ltfile ]; then



Mime
View raw message