Skip to content

Commit ae38c23

Browse files
author
Felipe Zimmerle
committed
Adjustments on top of #1790
1 parent 544fb50 commit ae38c23

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

configure.ac

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ AC_DEFUN([MSC_GIT_HASH], m4_esyscmd_s(git log -1 --format="%h" --abbrev-commit))
77
AC_DEFUN([MSC_MAJOR], m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MAJOR " | awk {'print $3'} | sed 's/\"//g'))
88
AC_DEFUN([MSC_MINOR], m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MINOR " | awk {'print $3'} | sed 's/\"//g'))
99
AC_DEFUN([MSC_PATCHLEVEL], m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_PATCHLEVEL " | awk {'print $3'} | sed 's/\"//g'))
10-
AC_DEFUN([MSC_TAG], m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_TAG " | awk {'print $3'} | sed 's/\"//g'))
10+
AC_DEFUN([MSC_TAG], m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_FTAG " | awk {'print $3'} | sed 's/\"//g'))
1111

1212

1313
# Version definition to be further used by AC_INIT and
@@ -22,6 +22,9 @@ m4_define([msc_version_c_plus_a], [m4_eval(msc_version_major + msc_version_minor
2222
m4_define([msc_version],
2323
[msc_version_major.msc_version_minor])
2424

25+
m4_define([msc_version_with_patchlevel],
26+
[msc_version_major.msc_version_minor.msc_version_patchlevel])
27+
2528
m4_define([msc_version_git],
2629
[m4_esyscmd_s(git describe)])
2730

@@ -201,6 +204,9 @@ AC_SUBST([MSC_BASE_DIR])
201204
MSC_VERSION_INFO=msc_version_info
202205
AC_SUBST([MSC_VERSION_INFO])
203206

207+
MSC_VERSION_WITH_PATCHLEVEL=msc_version_with_patchlevel
208+
AC_SUBST([MSC_VERSION_WITH_PATCHLEVEL])
209+
204210
MSC_VERSION=msc_version
205211
AC_SUBST([MSC_VERSION])
206212

modsecurity.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ includedir=@includedir@
55

66
Name: ModSecurity
77
Description: ModSecurity API
8-
Version: @PACKAGE_VERSION@
8+
Version: @MSC_VERSION_WITH_PATCHLEVEL@
99
Cflags: -I@includedir@/@PACKAGE@
1010
Libs: -L@libdir@ -lmodsecurity

0 commit comments

Comments
 (0)