Return-Path: Delivered-To: apmail-apr-cvs-archive@www.apache.org Received: (qmail 58747 invoked from network); 15 Jan 2004 14:49:08 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Jan 2004 14:49:08 -0000 Received: (qmail 9287 invoked by uid 500); 15 Jan 2004 14:49:04 -0000 Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 9209 invoked by uid 500); 15 Jan 2004 14:49:04 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 9192 invoked by uid 500); 15 Jan 2004 14:49:04 -0000 Delivered-To: apmail-apr-util-cvs@apache.org Date: 15 Jan 2004 14:49:07 -0000 Message-ID: <20040115144907.58716.qmail@minotaur.apache.org> From: jorton@apache.org To: apr-util-cvs@apache.org Subject: cvs commit: apr-util/xml/expat buildconf.sh 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 jorton 2004/01/15 06:49:07 Modified: xml/expat buildconf.sh Log: Fix build with recent libtool HEAD: * xml/expat/buildconf.sh: Re-order to run libtoolize before creating aclocal.m4; use libtool.m4 from the cwd after running libtoolize, when found. Also add ltsugar.m4 to aclocal.m4 when found. Revision Changes Path 1.12 +26 -9 apr-util/xml/expat/buildconf.sh Index: buildconf.sh =================================================================== RCS file: /home/cvs/apr-util/xml/expat/buildconf.sh,v retrieving revision 1.11 retrieving revision 1.12 diff -b -d -u -r1.11 -r1.12 --- buildconf.sh 17 Jun 2003 20:51:47 -0000 1.11 +++ buildconf.sh 15 Jan 2004 14:49:07 -0000 1.12 @@ -1,21 +1,13 @@ #! /bin/sh # -# Build aclocal.m4 from libtool's libtool.m4 +# Find libtoolize # libtoolize=`conftools/PrintPath glibtoolize libtoolize` if [ "x$libtoolize" = "x" ]; then echo "libtoolize not found in path" exit 1 fi -ltpath=`dirname $libtoolize` -ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4} -echo "Incorporating $ltfile into aclocal.m4 ..." -echo "dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh" > aclocal.m4 -echo "dnl edits here will be lost" >> aclocal.m4 -cat $ltfile >> aclocal.m4 - -cross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling" # # Create the libtool helper files @@ -30,8 +22,33 @@ # Remove any libtool files so one can switch between libtool 1.3 # and libtool 1.4 by simply rerunning the buildconf script. (cd conftools ; rm -f ltconfig ltmain.sh) +rm -f aclocal.m4 libtool.m4 ltsugar.m4 $libtoolize --copy --automake + +# +# Build aclocal.m4 from libtool's libtool.m4 +# +if [ -f libtool.m4 ]; then + ltfile=libtool.m4 +else + ltpath=`dirname $libtoolize` + ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4} +fi +echo "Incorporating $ltfile into aclocal.m4 ..." +echo "dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh" > aclocal.m4 +echo "dnl edits here will be lost" >> aclocal.m4 +cat $ltfile >> aclocal.m4 + +if [ -f ltsugar.m4 ]; then + echo "Incorporating ltsugar.m4 into aclocal.m4 ..." + cat ltsugar.m4 >> aclocal.m4 +fi + +# Clean up again +rm -f libtool.m4 ltsugar.m4 + +cross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling" # # Generate the autoconf header template (config.h.in) and ./configure