Reinstate the 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4' way of
including our local m4/reentrant.m4 file. This even takes care of including the file in the distribution tarball.
This commit is contained in:
parent
637bfa0252
commit
a3498f96ef
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
EXTRA_DIST = CHANGES COPYING maketgz reconf Makefile.dist curl-config.in \
|
EXTRA_DIST = CHANGES COPYING maketgz reconf Makefile.dist curl-config.in \
|
||||||
curl-style.el sample.emacs RELEASE-NOTES buildconf buildconf.bat libcurl.pc.in
|
curl-style.el sample.emacs RELEASE-NOTES buildconf buildconf.bat libcurl.pc.in
|
||||||
|
|
||||||
|
10
acinclude.m4
10
acinclude.m4
@ -3529,13 +3529,3 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
|||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl Tests done using 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4'
|
|
||||||
dnl in top Makefile.am triggered a problem that prevented aclocal from running
|
|
||||||
dnl successfully on SunOS 5.10 with GNU m4 1.4.5 and GNU Autoconf 2.61
|
|
||||||
dnl We actually don't need all the bells and whistles that the above mechanism
|
|
||||||
dnl provides. We only need to include our m4/reentrant.m4 file here.
|
|
||||||
|
|
||||||
m4_include([m4/reentrant.m4])
|
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
lib_LTLIBRARIES = libcares.la
|
lib_LTLIBRARIES = libcares.la
|
||||||
|
|
||||||
man_MANS = $(MANPAGES)
|
man_MANS = $(MANPAGES)
|
||||||
|
@ -2119,12 +2119,3 @@ AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
|
|||||||
#
|
#
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Tests done using 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4'
|
|
||||||
dnl in top Makefile.am triggered a problem that prevented aclocal from running
|
|
||||||
dnl successfully on SunOS 5.10 with GNU m4 1.4.5 and GNU Autoconf 2.61
|
|
||||||
dnl We actually don't need all the bells and whistles that the above mechanism
|
|
||||||
dnl provides. We only need to include our m4/reentrant.m4 file here.
|
|
||||||
|
|
||||||
m4_include([m4/reentrant.m4])
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
${LIBTOOLIZE:-libtoolize} --copy --automake --force
|
${LIBTOOLIZE:-libtoolize} --copy --automake --force
|
||||||
${ACLOCAL:-aclocal} $ACLOCAL_FLAGS
|
${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS
|
||||||
${AUTOHEADER:-autoheader}
|
${AUTOHEADER:-autoheader}
|
||||||
${AUTOCONF:-autoconf}
|
${AUTOCONF:-autoconf}
|
||||||
${AUTOMAKE:-automake} --add-missing
|
${AUTOMAKE:-automake} --add-missing
|
||||||
|
36
buildconf
36
buildconf
@ -305,46 +305,12 @@ fi
|
|||||||
tmp_host_type=`uname -a | sed '/SunOS/s/.*\(SunOS\).*/\1/'`
|
tmp_host_type=`uname -a | sed '/SunOS/s/.*\(SunOS\).*/\1/'`
|
||||||
if test "x$tmp_host_type" = "xSunOS"; then
|
if test "x$tmp_host_type" = "xSunOS"; then
|
||||||
ACLOCAL_FLAGS="$ACLOCAL_FLAGS --verbose"
|
ACLOCAL_FLAGS="$ACLOCAL_FLAGS --verbose"
|
||||||
|
|
||||||
echo "buildconf: PATH: $PATH"
|
|
||||||
|
|
||||||
# show all available sed's in PATH order
|
|
||||||
old_IFS=$IFS; IFS=':'
|
|
||||||
for path in $PATH
|
|
||||||
do
|
|
||||||
IFS=$old_IFS
|
|
||||||
if test -f "$path/sed"; then
|
|
||||||
echo "buildconf: sed: $path/sed"
|
|
||||||
fi
|
|
||||||
if test -f "$path/gsed"; then
|
|
||||||
echo "buildconf: sed: $path/gsed"
|
|
||||||
if test -z "$SED"; then
|
|
||||||
SED="$path/gsed"
|
|
||||||
export SED
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
IFS=$old_IFS
|
|
||||||
echo "buildconf: SED: $SED"
|
|
||||||
|
|
||||||
echo "buildconf: Feeding acinclude.m4 with reentrant.m4"
|
|
||||||
|
|
||||||
sed 's/m4_include.*m4.*reentrant.m4.*//' acinclude.m4 > acinclude.2
|
|
||||||
mv acinclude.2 acinclude.m4
|
|
||||||
cat m4/reentrant.m4 >> acinclude.m4
|
|
||||||
rm -f m4/reentrant.m4
|
|
||||||
|
|
||||||
sed 's/m4_include.*m4.*reentrant.m4.*//' ares/acinclude.m4 > ares/acinclude.2
|
|
||||||
mv ares/acinclude.2 ares/acinclude.m4
|
|
||||||
cat ares/m4/reentrant.m4 >> ares/acinclude.m4
|
|
||||||
rm -f ares/m4/reentrant.m4
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "buildconf: running libtoolize"
|
echo "buildconf: running libtoolize"
|
||||||
$libtoolize --copy --automake --force || die "The libtoolize command failed"
|
$libtoolize --copy --automake --force || die "The libtoolize command failed"
|
||||||
echo "buildconf: running aclocal"
|
echo "buildconf: running aclocal"
|
||||||
${ACLOCAL:-aclocal} $ACLOCAL_FLAGS || die "The aclocal command line failed"
|
${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS || die "The aclocal command line failed"
|
||||||
if test -n "$PERL"; then
|
if test -n "$PERL"; then
|
||||||
echo "buildconf: running aclocal hack to convert all mv to mv -f"
|
echo "buildconf: running aclocal hack to convert all mv to mv -f"
|
||||||
$PERL -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
|
$PERL -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
|
||||||
|
Loading…
Reference in New Issue
Block a user