gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 195/205: configure.ac: ignore CR after version numb


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 195/205: configure.ac: ignore CR after version numbers
Date: Thu, 20 Apr 2017 16:22:15 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit 5cefe201e924867f7b6e078a6c5fdce013bb510b
Author: Marcel Raad <address@hidden>
AuthorDate: Sat Apr 15 08:32:23 2017 +0200

    configure.ac: ignore CR after version numbers
    
    Ignore everything after the version numbers in LIBCURL_VERSION and
    LIBCURL_VERSION_NUM to ged rid of the extra CR character.
    This makes tests 1022 and 1023 pass on Linux with a CRLF checkout.
    
    Ref: https://github.com/curl/curl/pull/1344#issuecomment-289243166
    Closes https://github.com/curl/curl/pull/1422
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index abd0def36..b492a29a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,7 +126,7 @@ if test -f ${srcdir}/include/curl/curlbuild.h; then
 fi
 
 dnl figure out the libcurl version
-CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' 
${srcdir}/include/curl/curlver.h`
+CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' 
${srcdir}/include/curl/curlver.h`
 XC_CHECK_PROG_CC
 XC_AUTOMAKE
 AC_MSG_CHECKING([curl version])
@@ -136,7 +136,7 @@ AC_SUBST(CURLVERSION)
 
 dnl
 dnl we extract the numerical version for curl-config only
-VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' 
${srcdir}/include/curl/curlver.h`
+VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 
0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
 AC_SUBST(VERSIONNUM)
 
 dnl Solaris pkgadd support definitions

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]