configure plugin path in scripts
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 29 Jun 2008 14:43:50 +0000 (14:43 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 29 Jun 2008 14:43:50 +0000 (14:43 -0000)
scripts/Makefile.am
scripts/key2keyid.c

index 5e47bb4..845409c 100644 (file)
@@ -1,4 +1,5 @@
 INCLUDES = -I$(top_srcdir)/src/libstrongswan
+AM_CFLAGS =-DIPSEC_PLUGINDIR=\"${plugindir}\"
 
 noinst_PROGRAMS = bin2array bin2sql id2sql key2keyid
 bin2array_SOURCES = bin2array.c
index 3c488e5..b74ac70 100644 (file)
@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
        //dbg = dbg_stderr;
        
        library_init(NULL);
-       lib->plugins->load(lib->plugins, "/usr/local/libexec/ipsec/plugins", "gmp pubkey sha1");
+       lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, "gmp pubkey sha1");
        atexit(library_deinit);
 
        read = fread(buf, 1, sizeof(buf), stdin);