Use macros to define --with options
This commit is contained in:
@@ -5,8 +5,8 @@ EXTRA_DIST = _updown.in
|
||||
|
||||
_updown : _updown.in
|
||||
sed \
|
||||
-e "s:@IPSEC_SBINDIR@:$(sbindir):" \
|
||||
-e "s:\@IPSEC_ROUTING_TABLE\@:$(IPSEC_ROUTING_TABLE):" \
|
||||
-e "s:\@IPSEC_ROUTING_TABLE_PRIO\@:$(IPSEC_ROUTING_TABLE_PRIO):" \
|
||||
-e "s:\@sbindir\@:$(sbindir):" \
|
||||
-e "s:\@routing_table\@:$(routing_table):" \
|
||||
-e "s:\@routing_table_prio\@:$(routing_table_prio):" \
|
||||
$(srcdir)/$@.in > $@
|
||||
chmod +x $@
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
#
|
||||
|
||||
# define a minimum PATH environment in case it is not set
|
||||
PATH="/sbin:/bin:/usr/sbin:/usr/bin:@IPSEC_SBINDIR@"
|
||||
PATH="/sbin:/bin:/usr/sbin:/usr/bin:@sbindir@"
|
||||
export PATH
|
||||
|
||||
# uncomment to log VPN connections
|
||||
@@ -139,10 +139,10 @@ FAC_PRIO=local0.notice
|
||||
# must be enabled
|
||||
#
|
||||
# special routing table for sourceip routes
|
||||
SOURCEIP_ROUTING_TABLE=@IPSEC_ROUTING_TABLE@
|
||||
SOURCEIP_ROUTING_TABLE=@routing_table@
|
||||
#
|
||||
# priority of the sourceip routing table
|
||||
SOURCEIP_ROUTING_TABLE_PRIO=@IPSEC_ROUTING_TABLE_PRIO@
|
||||
SOURCEIP_ROUTING_TABLE_PRIO=@routing_table_prio@
|
||||
|
||||
# check interface version
|
||||
case "$PLUTO_VERSION" in
|
||||
|
||||
@@ -102,7 +102,7 @@ credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.
|
||||
credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
|
||||
credentials/credential_set.h
|
||||
|
||||
INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
AM_CFLAGS = -rdynamic \
|
||||
-DIPSEC_DIR=\"${ipsecdir}\" \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\" \
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
|
||||
AM_CFLAGS = -rdynamic -DIPSEC_CONFDIR=\"${confdir}\" -DSIM_READER_LIB=\"${simreader}\"
|
||||
AM_CFLAGS = -rdynamic \
|
||||
-DIPSEC_CONFDIR=\"${confdir}\" \
|
||||
-DSIM_READER_LIB=\"${sim_reader}\"
|
||||
|
||||
plugin_LTLIBRARIES = libstrongswan-eapsim.la
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
|
||||
INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
AM_CFLAGS = -rdynamic \
|
||||
-DROUTING_TABLE=${routing_table} \
|
||||
-DROUTING_TABLE_PRIO=${routing_table_prio}
|
||||
|
||||
plugin_LTLIBRARIES = libstrongswan-kernel-netlink.la
|
||||
|
||||
|
||||
@@ -34,14 +34,6 @@
|
||||
/** delay before firing roam jobs (ms) */
|
||||
#define ROAM_DELAY 100
|
||||
|
||||
/** routing table for routes installed by us */
|
||||
#ifndef IPSEC_ROUTING_TABLE
|
||||
#define IPSEC_ROUTING_TABLE 100
|
||||
#endif
|
||||
#ifndef IPSEC_ROUTING_TABLE_PRIO
|
||||
#define IPSEC_ROUTING_TABLE_PRIO 100
|
||||
#endif
|
||||
|
||||
typedef struct addr_entry_t addr_entry_t;
|
||||
|
||||
/**
|
||||
@@ -1366,9 +1358,9 @@ kernel_netlink_net_t *kernel_netlink_net_create()
|
||||
this->condvar = condvar_create(CONDVAR_TYPE_DEFAULT);
|
||||
timerclear(&this->last_roam);
|
||||
this->routing_table = lib->settings->get_int(lib->settings,
|
||||
"charon.routing_table", IPSEC_ROUTING_TABLE);
|
||||
"charon.routing_table", ROUTING_TABLE);
|
||||
this->routing_table_prio = lib->settings->get_int(lib->settings,
|
||||
"charon.routing_table_prio", IPSEC_ROUTING_TABLE_PRIO);
|
||||
"charon.routing_table_prio", ROUTING_TABLE_PRIO);
|
||||
this->process_route = lib->settings->get_bool(lib->settings,
|
||||
"charon.process_route", TRUE);
|
||||
this->install_virtual_ip = lib->settings->get_bool(lib->settings,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
AM_CFLAGS = -rdynamic \
|
||||
-DDEV_RANDOM=\"${random_device}\" \
|
||||
-DDEV_URANDOM=\"${urandom_device}\"
|
||||
|
||||
plugin_LTLIBRARIES = libstrongswan-random.la
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ LIBSTRONGSWANDIR=$(top_builddir)/src/libstrongswan
|
||||
LIBFREESWANDIR=$(top_builddir)/src/libfreeswan
|
||||
|
||||
INCLUDES = \
|
||||
-I${linuxdir} \
|
||||
-I${linux_headers} \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libfreeswan \
|
||||
-I$(top_srcdir)/src/whack
|
||||
@@ -71,6 +71,7 @@ AM_CFLAGS = \
|
||||
-DIPSEC_PLUGINDIR=\"${plugindir}\" \
|
||||
-DPLUGINS=\""${pluto_plugins}\"" \
|
||||
-DSTRONGSWAN_CONF=\"${strongswan_conf}\" \
|
||||
-DPKCS11_DEFAULT_LIB=\"${default_pkcs11}\" \
|
||||
-DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
|
||||
-DPLUTO -DKLIPS -DDEBUG
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ keywords.c files.h keywords.h cmp.c starter.c cmp.h exec.c invokecharon.c \
|
||||
exec.h invokecharon.h lex.yy.c loglite.c klips.c klips.h
|
||||
|
||||
INCLUDES = \
|
||||
-I${linuxdir} \
|
||||
-I${linux_headers} \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libfreeswan \
|
||||
-I$(top_srcdir)/src/pluto \
|
||||
@@ -18,6 +18,8 @@ AM_CFLAGS = \
|
||||
-DIPSEC_CONFDIR=\"${confdir}\" \
|
||||
-DIPSEC_PIDDIR=\"${piddir}\" \
|
||||
-DIPSEC_EAPDIR=\"${eapdir}\" \
|
||||
-DDEV_RANDOM=\"${random_device}\" \
|
||||
-DDEV_URANDOM=\"${urandom_device}\" \
|
||||
-DDEBUG
|
||||
|
||||
starter_LDADD = defs.o $(top_builddir)/src/libfreeswan/libfreeswan.a $(top_builddir)/src/libstrongswan/libstrongswan.la $(SOCKLIB)
|
||||
|
||||
Reference in New Issue
Block a user