aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-01-23 22:22:26 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-01-23 22:34:17 +0200
commit6889d23af2aa8a4436378b2cd78b0e71a0992eb5 (patch)
tree685d61710a1f921c5d893f1f3b215186f71340bf
parentb946286617a36e74b5ee6efd09930ed18683afd7 (diff)
downloadvmod-variable-6889d23af2aa8a4436378b2cd78b0e71a0992eb5.tar.gz
vmod-variable-6889d23af2aa8a4436378b2cd78b0e71a0992eb5.tar.bz2
Change versioning.
* .gitmodules: New file. * acvmod: New submodule. * bootstrap: Update. * Makefile.am (ACLOCAL_AMFLAGS): Add acvmod * configure.ac: Use AM_VARNISHAPI instead of inlining the related code. Enable silent rules. Set version number 1.0.90-4.1.0 * src/Makefile.am: Enable silent rules. * tests/Makefile.am: Likewise. * src/variable.vcc: Update copyright year. * src/variable.c: Fix copyright statement. * NEWS: Update.
-rw-r--r--.gitmodules3
-rw-r--r--Makefile.am4
-rw-r--r--NEWS11
m---------acvmod0
-rwxr-xr-xbootstrap2
-rw-r--r--configure.ac99
-rw-r--r--src/Makefile.am4
-rw-r--r--src/variable.c10
-rw-r--r--src/variable.vcc2
-rw-r--r--tests/Makefile.am10
10 files changed, 34 insertions, 111 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..00ae21c
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
1[submodule "acvmod"]
2 path = acvmod
3 url = git://git.gnu.org.ua/acvmod.git
diff --git a/Makefile.am b/Makefile.am
index 4111605..9afba47 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,8 +1,8 @@
1# This file is part of vmod-variable 1# This file is part of vmod-variable
2# Copyright (C) 2013-2014 Sergey Poznyakoff 2# Copyright (C) 2013-2016 Sergey Poznyakoff
3# 3#
4# Vmod-variable is free software; you can redistribute it and/or modify 4# Vmod-variable is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3, or (at your option) 6# the Free Software Foundation; either version 3, or (at your option)
7# any later version. 7# any later version.
8# 8#
@@ -10,13 +10,13 @@
10# but WITHOUT ANY WARRANTY; without even the implied warranty of 10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details. 12# GNU General Public License for more details.
13# 13#
14# You should have received a copy of the GNU General Public License 14# You should have received a copy of the GNU General Public License
15# along with vmod-variable. If not, see <http://www.gnu.org/licenses/>. 15# along with vmod-variable. If not, see <http://www.gnu.org/licenses/>.
16ACLOCAL_AMFLAGS = -I m4 16ACLOCAL_AMFLAGS = -I m4 -I acvmod
17 17
18SUBDIRS = src tests 18SUBDIRS = src tests
19 19
20AM_DISTCHECK_CONFIGURE_FLAGS=--without-vmoddir 20AM_DISTCHECK_CONFIGURE_FLAGS=--without-vmoddir
21 21
22EXTRA_DIST=git2chg.awk 22EXTRA_DIST=git2chg.awk
diff --git a/NEWS b/NEWS
index c0d662a..c0aa244 100644
--- a/NEWS
+++ b/NEWS
@@ -1,16 +1,21 @@
1vmod-variable -- history of user-visible changes. 2016-01-15 1vmod-variable -- history of user-visible changes. 2016-01-23
2Copyright (C) 2015-2016 Sergey Poznyakoff 2Copyright (C) 2015-2016 Sergey Poznyakoff
3See the end of file for copying conditions. 3See the end of file for copying conditions.
4 4
5Please send vmod-variable bug reports to <gray@gnu.org> 5Please send vmod-variable bug reports to <gray@gnu.org>
6 6
7 7
8Version 1.0.90, (Git) 8Version 1.0.90-4.1.0, (Git)
9 9
10Fix coredumps. 10* Versioning changes
11
12Starting with this release, the version number includes version
13of Varnish API the release was designed for.
14
15* Support for Varnish 4,1
11 16
12 17
13Version 1.0, 2015-02-16 18Version 1.0, 2015-02-16
14 19
15Initial release 20Initial release
16 21
diff --git a/acvmod b/acvmod
new file mode 160000
Subproject f064cf4d7aa1ead1f8607b8b72baf883f015ffc
diff --git a/bootstrap b/bootstrap
index 89ccf31..ea0a965 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,7 +1,9 @@
1#!/bin/sh 1#!/bin/sh
2for dir in m4 build-aux 2for dir in m4 build-aux
3do 3do
4 test -d $dir || mkdir $dir 4 test -d $dir || mkdir $dir
5done 5done
6test -f ChangeLog || touch ChangeLog 6test -f ChangeLog || touch ChangeLog
7git submodule init
8git submodule update
7autoreconf -f -i -s 9autoreconf -f -i -s
diff --git a/configure.ac b/configure.ac
index 4f328e7..ca5c8f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,136 +11,49 @@
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details. 12# GNU General Public License for more details.
13# 13#
14# You should have received a copy of the GNU General Public License 14# You should have received a copy of the GNU General Public License
15# along with vmod-variable. If not, see <http://www.gnu.org/licenses/>. 15# along with vmod-variable. If not, see <http://www.gnu.org/licenses/>.
16AC_PREREQ(2.69) 16AC_PREREQ(2.69)
17AC_INIT([vmod-variable], [1.0.90], [gray@gnu.org]) 17AC_INIT([vmod-variable], [1.0.90-4.1.0], [gray@gnu.org])
18AC_CONFIG_AUX_DIR([build-aux]) 18AC_CONFIG_AUX_DIR([build-aux])
19AC_CONFIG_MACRO_DIR([m4]) 19AC_CONFIG_MACRO_DIR([m4])
20AC_CONFIG_SRCDIR(src/variable.vcc) 20AC_CONFIG_SRCDIR(src/variable.vcc)
21AM_CONFIG_HEADER(config.h) 21AM_CONFIG_HEADER(config.h)
22 22
23AC_CANONICAL_SYSTEM 23AC_CANONICAL_SYSTEM
24AC_LANG(C) 24AC_LANG(C)
25 25
26AM_INIT_AUTOMAKE([1.14 gnu tar-ustar]) 26AM_INIT_AUTOMAKE([1.14 gnu tar-ustar silent-rules])
27AM_SILENT_RULES([yes])
27 28
28AC_GNU_SOURCE 29AC_GNU_SOURCE
29AC_PROG_CC 30AC_PROG_CC
30AC_PROG_CC_STDC 31AC_PROG_CC_STDC
31if test "x$ac_cv_prog_cc_c99" = xno; then 32if test "x$ac_cv_prog_cc_c99" = xno; then
32 AC_MSG_ERROR([could not find a C99 compatible compiler]) 33 AC_MSG_ERROR([could not find a C99 compatible compiler])
33fi 34fi
34AC_PROG_CPP 35AC_PROG_CPP
35 36
36AC_PROG_INSTALL 37AC_PROG_INSTALL
37AC_PROG_LIBTOOL 38AC_PROG_LIBTOOL
38AC_PROG_MAKE_SET 39AC_PROG_MAKE_SET
39 40
40# Check for pkg-config
41PKG_PROG_PKG_CONFIG
42
43# Checks for header files. 41# Checks for header files.
44AC_HEADER_STDC 42AC_HEADER_STDC
45AC_CHECK_HEADERS(sys/sysinfo.h) 43AC_CHECK_HEADERS(sys/sysinfo.h)
46AC_CHECK_HEADERS(pcre.h,, 44AC_CHECK_HEADERS(pcre.h,,
47 AC_MSG_ERROR([required header file pcre.h not found])) 45 AC_MSG_ERROR([required header file pcre.h not found]))
48 46
49# Check for functions 47# Check for functions
50AC_CHECK_FUNCS(sysinfo getloadavg) 48AC_CHECK_FUNCS(sysinfo getloadavg)
51AC_CHECK_LIB(pcre, pcre_compile,, 49AC_CHECK_LIB(pcre, pcre_compile,,
52 AC_MSG_ERROR([required library libpcre not found])) 50 AC_MSG_ERROR([required library libpcre not found]))
53 51
54# Check for python 52AM_VARNISHAPI
55AC_CHECK_PROGS(PYTHON, [python], [ 53
56 AC_MSG_ERROR([python is not found.])])
57
58# Varnish source tree
59AC_ARG_VAR([VARNISHSRC], [path to Varnish source tree])
60AC_ARG_WITH([varnish-source],
61 AC_HELP_STRING([--with-varnish-source=DIR],
62 [Varnish sources are located in DIR]),
63 [VARNISHSRC=$withval])
64
65if test -z "$VARNISHSRC"; then
66 AC_MSG_ERROR([no Varnish source tree specified])
67fi
68case "$VARNISHSRC" in
69/*) ;;
70*) AC_MSG_ERROR([varnish source path must be absolute pathname])
71esac
72
73VARNISHSRC=`cd $VARNISHSRC && pwd`
74
75# pkg-config
76PKG_PROG_PKG_CONFIG
77PKG_CHECK_MODULES([libvarnishapi], [varnishapi])
78
79varnishapi_version() {
80 VARNISHAPI_MAJOR=$1
81 VARNISHAPI_MINOR=$2
82 VARNISHAPI_PATCH=$3
83}
84
85v=$($PKG_CONFIG --modversion varnishapi)
86if test -n "$v"; then
87 save_IFS=$IFS
88 IFS='.'
89 varnishapi_version $v
90 IFS=$save_IFS
91else
92 AC_MSG_ERROR([unknown varnishapi version])
93fi
94
95if test $VARNISHAPI_MAJOR -ne 4; then
96 AC_MSG_ERROR([unsupported varnishapi version])
97fi
98
99case $VARNISHAPI_MINOR in
1000) AC_MSG_ERROR([unsupported varnishapi version]);;
1011) ;;
102*) AC_MSG_WARN([varnishapi minor version probably unsupported])
103esac
104
105# Check that varnishtest is built in the varnish source directory
106AC_CHECK_FILE([$VARNISHSRC/bin/varnishtest/varnishtest],
107 [],
108 [AC_MSG_FAILURE([cannot find "$VARNISHSRC/bin/varnishtest/varnishtest". Please build your varnish source directory])]
109)
110
111# vmod installation dir
112AC_ARG_VAR([VMODDIR], [vmod installation directory])
113AC_ARG_WITH([vmoddir],
114 AC_HELP_STRING([--with-vmoddir=DIR],
115 [install modules to DIR]),
116 [case "$withval" in
117 /*) VMODDIR=$withval;;
118 no) unset VMODDIR;;
119 *) AC_MSG_ERROR([argument to --with-vmoddir must be absolute pathname])
120 esac],[VMODDIR=$($PKG_CONFIG --variable=vmoddir varnishapi)
121 if test -z "$VMODDIR"; then
122 AC_MSG_FAILURE([cannot determine vmod installation directory]