diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-01-23 22:22:26 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-01-23 22:34:17 +0200 |
commit | 6889d23af2aa8a4436378b2cd78b0e71a0992eb5 (patch) | |
tree | 685d61710a1f921c5d893f1f3b215186f71340bf | |
parent | b946286617a36e74b5ee6efd09930ed18683afd7 (diff) | |
download | vmod-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-- | .gitmodules | 3 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | NEWS | 11 | ||||
m--------- | acvmod | 0 | ||||
-rwxr-xr-x | bootstrap | 2 | ||||
-rw-r--r-- | configure.ac | 99 | ||||
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/variable.c | 10 | ||||
-rw-r--r-- | src/variable.vcc | 2 | ||||
-rw-r--r-- | tests/Makefile.am | 10 |
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/>. |
16 | ACLOCAL_AMFLAGS = -I m4 | 16 | ACLOCAL_AMFLAGS = -I m4 -I acvmod |
17 | 17 | ||
18 | SUBDIRS = src tests | 18 | SUBDIRS = src tests |
19 | 19 | ||
20 | AM_DISTCHECK_CONFIGURE_FLAGS=--without-vmoddir | 20 | AM_DISTCHECK_CONFIGURE_FLAGS=--without-vmoddir |
21 | 21 | ||
22 | EXTRA_DIST=git2chg.awk | 22 | EXTRA_DIST=git2chg.awk |
@@ -1,16 +1,21 @@ | |||
1 | vmod-variable -- history of user-visible changes. 2016-01-15 | 1 | vmod-variable -- history of user-visible changes. 2016-01-23 |
2 | Copyright (C) 2015-2016 Sergey Poznyakoff | 2 | Copyright (C) 2015-2016 Sergey Poznyakoff |
3 | See the end of file for copying conditions. | 3 | See the end of file for copying conditions. |
4 | 4 | ||
5 | Please send vmod-variable bug reports to <gray@gnu.org> | 5 | Please send vmod-variable bug reports to <gray@gnu.org> |
6 | 6 | ||
7 | 7 | ||
8 | Version 1.0.90, (Git) | 8 | Version 1.0.90-4.1.0, (Git) |
9 | 9 | ||
10 | Fix coredumps. | 10 | * Versioning changes |
11 | |||
12 | Starting with this release, the version number includes version | ||
13 | of Varnish API the release was designed for. | ||
14 | |||
15 | * Support for Varnish 4,1 | ||
11 | 16 | ||
12 | 17 | ||
13 | Version 1.0, 2015-02-16 | 18 | Version 1.0, 2015-02-16 |
14 | 19 | ||
15 | Initial release | 20 | Initial release |
16 | 21 | ||
diff --git a/acvmod b/acvmod new file mode 160000 | |||
Subproject f064cf4d7aa1ead1f8607b8b72baf883f015ffc | |||
@@ -1,7 +1,9 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | for dir in m4 build-aux | 2 | for dir in m4 build-aux |
3 | do | 3 | do |
4 | test -d $dir || mkdir $dir | 4 | test -d $dir || mkdir $dir |
5 | done | 5 | done |
6 | test -f ChangeLog || touch ChangeLog | 6 | test -f ChangeLog || touch ChangeLog |
7 | git submodule init | ||
8 | git submodule update | ||
7 | autoreconf -f -i -s | 9 | autoreconf -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/>. |
16 | AC_PREREQ(2.69) | 16 | AC_PREREQ(2.69) |
17 | AC_INIT([vmod-variable], [1.0.90], [gray@gnu.org]) | 17 | AC_INIT([vmod-variable], [1.0.90-4.1.0], [gray@gnu.org]) |
18 | AC_CONFIG_AUX_DIR([build-aux]) | 18 | AC_CONFIG_AUX_DIR([build-aux]) |
19 | AC_CONFIG_MACRO_DIR([m4]) | 19 | AC_CONFIG_MACRO_DIR([m4]) |
20 | AC_CONFIG_SRCDIR(src/variable.vcc) | 20 | AC_CONFIG_SRCDIR(src/variable.vcc) |
21 | AM_CONFIG_HEADER(config.h) | 21 | AM_CONFIG_HEADER(config.h) |
22 | 22 | ||
23 | AC_CANONICAL_SYSTEM | 23 | AC_CANONICAL_SYSTEM |
24 | AC_LANG(C) | 24 | AC_LANG(C) |
25 | 25 | ||
26 | AM_INIT_AUTOMAKE([1.14 gnu tar-ustar]) | 26 | AM_INIT_AUTOMAKE([1.14 gnu tar-ustar silent-rules]) |
27 | AM_SILENT_RULES([yes]) | ||
27 | 28 | ||
28 | AC_GNU_SOURCE | 29 | AC_GNU_SOURCE |
29 | AC_PROG_CC | 30 | AC_PROG_CC |
30 | AC_PROG_CC_STDC | 31 | AC_PROG_CC_STDC |
31 | if test "x$ac_cv_prog_cc_c99" = xno; then | 32 | if 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]) |
33 | fi | 34 | fi |
34 | AC_PROG_CPP | 35 | AC_PROG_CPP |
35 | 36 | ||
36 | AC_PROG_INSTALL | 37 | AC_PROG_INSTALL |
37 | AC_PROG_LIBTOOL | 38 | AC_PROG_LIBTOOL |
38 | AC_PROG_MAKE_SET | 39 | AC_PROG_MAKE_SET |
39 | 40 | ||
40 | # Check for pkg-config | ||
41 | PKG_PROG_PKG_CONFIG | ||
42 | |||
43 | # Checks for header files. | 41 | # Checks for header files. |
44 | AC_HEADER_STDC | 42 | AC_HEADER_STDC |
45 | AC_CHECK_HEADERS(sys/sysinfo.h) | 43 | AC_CHECK_HEADERS(sys/sysinfo.h) |
46 | AC_CHECK_HEADERS(pcre.h,, | 44 | AC_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 |
50 | AC_CHECK_FUNCS(sysinfo getloadavg) | 48 | AC_CHECK_FUNCS(sysinfo getloadavg) |
51 | AC_CHECK_LIB(pcre, pcre_compile,, | 49 | AC_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 | 52 | AM_VARNISHAPI |
55 | AC_CHECK_PROGS(PYTHON, [python], [ | 53 | |
56 | AC_MSG_ERROR([python is not found.])]) | ||
57 | |||
58 | # Varnish source tree | ||
59 | AC_ARG_VAR([VARNISHSRC], [path to Varnish source tree]) | ||
60 | AC_ARG_WITH([varnish-source], | ||
61 | AC_HELP_STRING([--with-varnish-source=DIR], | ||
62 | [Varnish sources are located in DIR]), | ||
63 | [VARNISHSRC=$withval]) | ||
64 | |||
65 | if test -z "$VARNISHSRC"; then | ||
66 | AC_MSG_ERROR([no Varnish source tree specified]) | ||
67 | fi | ||
68 | case "$VARNISHSRC" in | ||
69 | /*) ;; | ||
70 | *) AC_MSG_ERROR([varnish source path must be absolute pathname]) | ||
71 | esac | ||
72 | |||
73 | VARNISHSRC=`cd $VARNISHSRC && pwd` | ||
74 | |||
75 | # pkg-config | ||
76 | PKG_PROG_PKG_CONFIG | ||
77 | PKG_CHECK_MODULES([libvarnishapi], [varnishapi]) | ||
78 | |||
79 | varnishapi_version() { | ||
80 | VARNISHAPI_MAJOR=$1 | ||
81 | VARNISHAPI_MINOR=$2 | ||
82 | VARNISHAPI_PATCH=$3 | ||
83 | } | ||
84 | |||
85 | v=$($PKG_CONFIG --modversion varnishapi) | ||
86 | if test -n "$v"; then | ||
87 | save_IFS=$IFS | ||
88 | IFS='.' | ||
89 | varnishapi_version $v | ||
90 | IFS=$save_IFS | ||
91 | else | ||
92 | AC_MSG_ERROR([unknown varnishapi version]) | ||
93 | fi | ||
94 | |||
95 | if test $VARNISHAPI_MAJOR -ne 4; then | ||
96 | AC_MSG_ERROR([unsupported varnishapi version]) | ||
97 | fi | ||
98 | |||
99 | case $VARNISHAPI_MINOR in | ||
100 | 0) AC_MSG_ERROR([unsupported varnishapi version]);; | ||
101 | 1) ;; | ||
102 | *) AC_MSG_WARN([varnishapi minor version probably unsupported]) | ||
103 | esac | ||
104 | |||
105 | # Check that varnishtest is built in the varnish source directory | ||
106 | AC_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 | ||
112 | AC_ARG_VAR([VMODDIR], [vmod installation directory]) | ||
113 | AC_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] |