blob: c1a4fb35e4d8cb179af24618af0544e95cf7ef45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- curl-7.15.0/configure.ac.ver 2005-11-30 13:33:54.360624896 +0100
+++ curl-7.15.0/configure.ac 2005-11-30 13:34:14.009637792 +0100
@@ -43,7 +43,8 @@
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 -rne 's/^#define LIBCURL_VERSION_(MAJOR|MINOR|PATCH) ([^ ]*)$/\2/p' ${srcdir}/include/curl/curlver.h | xargs -n1 printf %02x; echo`
+
AC_SUBST(VERSIONNUM)
dnl Solaris pkgadd support definitions
|