From: Yang Tse Date: Sun, 22 Nov 2009 05:31:57 +0000 (+0000) Subject: Make configure remove the curlbuild.h file included in distribution tarballs X-Git-Tag: curl-7_20_0~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9e55c99087f879e2ad8113f8b26ebc2e24a0910;p=thirdparty%2Fcurl.git Make configure remove the curlbuild.h file included in distribution tarballs for use by non-configure systems. As intended, configure would overwrite the distributed one when doing in-tree builds. But VPATH builds would end having two curlbuild.h files, one in the source tree and another in the build tree. --- diff --git a/configure.ac b/configure.ac index 42c09c6ebf..7f051d6372 100644 --- a/configure.ac +++ b/configure.ac @@ -95,6 +95,11 @@ AC_SUBST([AR]) AC_SUBST(libext) +dnl Remove non-configure distributed curlbuild.h +if test -f ${srcdir}/include/curl/curlbuild.h; then + rm -f ${srcdir}/include/curl/curlbuild.h +fi + dnl figure out the libcurl version VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h` AM_INIT_AUTOMAKE(curl,$VERSION)