1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

Make configure remove the ares_build.h file included in distribution tarballs.

This commit is contained in:
Yang Tse 2009-11-22 05:31:31 +00:00
parent 65e628cc97
commit 3005e63b02

View File

@ -60,6 +60,11 @@ if test -z "$AR" || test "$AR" = "not_found"; then
fi
AC_SUBST([AR])
dnl Remove non-configure distributed ares_build.h
if test -f ${srcdir}/ares_build.h; then
rm -f ${srcdir}/ares_build.h
fi
dnl Fetch c-ares version from ares_version.h
VERSION=`$SED -ne 's/^#define ARES_VERSION_STR "\(.*\)"/\1/p' ${srcdir}/ares_version.h`
AM_INIT_AUTOMAKE([c-ares], [$VERSION])