Fix build of apr-util expat with libtool2

Applied patch from:
http://people.apache.org/~rjung/patches/expat-libtool2.patch

The failure that results from this seems to occur
non-deterministically.

FS-3185 --resolve
This commit is contained in:
Travis Cross 2013-10-17 03:05:12 +00:00
parent d5d45281f3
commit ddf44c089a
2 changed files with 22 additions and 13 deletions

View File

@ -28,26 +28,34 @@ rm -rf aclocal.m4 libtool.m4 ltsugar.m4 autom4te*.cache
$libtoolize --copy --automake $libtoolize --copy --automake
# #
# Build aclocal.m4 from libtool's libtool.m4 # find libtool.m4
# #
if [ -f libtool.m4 ]; then if [ ! -f libtool.m4 ]; then
ltfile=libtool.m4
else
ltpath=`dirname $libtoolize` ltpath=`dirname $libtoolize`
ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4} ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4}
if [ -f $ltfile ]; then
echo "libtool.m4 found at $ltfile"
cp $ltfile libtool.m4
else
echo "libtool.m4 not found - aborting!"
exit 1
fi fi
echo "Incorporating $ltfile into aclocal.m4 ..." fi
#
# Build aclocal.m4 from libtool's m4 files
#
echo "dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh" > aclocal.m4 echo "dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh" > aclocal.m4
echo "dnl edits here will be lost" >> aclocal.m4 echo "dnl edits here will be lost" >> aclocal.m4
cat $ltfile >> aclocal.m4
if [ -f ltsugar.m4 ]; then for m4file in libtool.m4 ltsugar.m4 ltoptions.m4 ltversion.m4 lt~obsolete.m4
echo "Incorporating ltsugar.m4 into aclocal.m4 ..." do
cat ltsugar.m4 >> aclocal.m4 if [ -f $m4file ]; then
echo "Incorporating $m4file into aclocal.m4 ..."
cat $m4file >> aclocal.m4
rm -f $m4file
fi fi
done
# Clean up again
rm -f libtool.m4 ltsugar.m4
cross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling" cross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"

View File

@ -12,6 +12,7 @@ dnl
AC_INIT(Makefile.in) AC_INIT(Makefile.in)
AC_CONFIG_AUX_DIR(conftools) AC_CONFIG_AUX_DIR(conftools)
AC_CONFIG_MACRO_DIR(.)
dnl dnl
dnl Follow the GNU/Linux convention of odd number minor version for dnl Follow the GNU/Linux convention of odd number minor version for