]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Clean up plugin path handling
authorChristian Hesse <mail@eworm.de>
Wed, 25 Jan 2017 20:19:47 +0000 (21:19 +0100)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 25 Jan 2017 21:10:43 +0000 (22:10 +0100)
commit4590c3831d0400096fab08aa1ed7f909da870ced
tree5bf236ea2eae5532fd5f297b928f72846fc3929c
parent76096c605fcac4815674b6ae76ac1f31f03a8186
Clean up plugin path handling

Drop --with-plugindir, instead use an environment variable PLUGINDIR
to specify the plugin directory.

This puts a define into include/openvpn-plugin.h.in which has the plugin
directory.

The configure script does not know about the final plugin path. Thus we
have to make Make generate the final header file for us.

As the path is always available remove the compile time condition (and
dead code) from src/openvpn/plugin.c.

v2: The configure script can not evaluate the final $libdir path. So
    use make to create a header file on the containing the final path.

v3: Fix whitespace errors and gitignore location.

v4: No extra header file, generate src/openvpn/plugin.h on the fly.
    Remove condition and dead code.

v5: Move the define to include/openvpn-plugin.h.in and let make generate
    the final header file.

Signed-off-by: Christian Hesse <mail@eworm.de>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20170125201947.17197-1-list@eworm.de>
URL: http://www.mail-archive.com/search?l=mid&q=20170125201947.17197-1-list@eworm.de
Signed-off-by: David Sommerseth <davids@openvpn.net>
configure.ac
include/Makefile.am
include/openvpn-plugin.h.in
src/openvpn/plugin.c