]> git.ipfire.org Git - thirdparty/openvpn.git/blob - compat.m4
documentation: improve documentation of --x509-track
[thirdparty/openvpn.git] / compat.m4
1 dnl OpenVPN -- An application to securely tunnel IP networks
2 dnl over a single UDP port, with support for SSL/TLS-based
3 dnl session authentication and key exchange,
4 dnl packet encryption, packet authentication, and
5 dnl packet compression.
6 dnl
7 dnl Copyright (C) 2008-2012 Alon Bar-Lev <alon.barlev@gmail.com>
8 dnl
9 dnl This program is free software; you can redistribute it and/or modify
10 dnl it under the terms of the GNU General Public License as published by
11 dnl the Free Software Foundation; either version 2 of the License, or
12 dnl (at your option) any later version.
13 dnl
14 dnl This program is distributed in the hope that it will be useful,
15 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
16 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 dnl GNU General Public License for more details.
18 dnl
19 dnl You should have received a copy of the GNU General Public License along
20 dnl with this program; if not, write to the Free Software Foundation, Inc.,
21 dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
23 dnl Compatibility layer for <autoconf-2.60 <automake-1.10
24 dnl REMOVE THIS IN FUTURE!
25
26 ifdef(
27 [AS_VAR_IF],
28 ,
29 [
30 AC_DEFUN([AS_VAR_IF], [dnl
31 if test "$$1" = "$2"; then
32 m4_ifval([$3], [$3], [:])
33 else
34 m4_ifval([$4], [$4], [:])
35 fi
36 ])
37 ]
38 )
39 ifdef(
40 [AC_USE_SYSTEM_EXTENSIONS],
41 ,
42 [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [GNU_SOURCE])]
43 )
44 ifdef(
45 [AC_PROG_SED],
46 ,
47 [AC_DEFUN([AC_PROG_SED], [AC_CHECK_PROGS([SED], [sed])])]
48 )
49 ifdef(
50 [PKG_CHECK_VAR],
51 ,
52 [
53 AC_DEFUN([PKG_CHECK_VAR],
54 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
55 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])
56
57 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
58 AS_VAR_COPY([$1], [pkg_cv_][$1])
59
60 AS_VAR_IF([$1], [""], [$5], [$4])
61 ])
62 ]
63 )
64
65 if test -z "${docdir}"; then
66 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
67 AC_SUBST([docdir])
68 fi
69 if test -z "${htmldir}"; then
70 htmldir="\$(docdir)"
71 AC_SUBST([htmldir])
72 fi