In keeping with all the other path variables (eg, libdir), don't resolve
plugindir at configure time. Instead leave it to be defined at make time, which means it can then be changed by, eg, changing $prefix. This also means moving the definition of PLUGIN_DIR from config.h to a -D in CPPFLAGS. svn path=/trunk/; revision=22617
This commit is contained in:
parent
58b39bde74
commit
bea90e8c33
|
@ -248,8 +248,5 @@
|
|||
/* Version number of package */
|
||||
#define VERSION "@VERSION@"
|
||||
|
||||
/* We don't know what the plugin installation directory will be. */
|
||||
#define PLUGIN_DIR NULL
|
||||
|
||||
/* We shouldn't need this under Windows but we'll define it anyway. */
|
||||
#define HTML_VIEWER "mozilla"
|
||||
|
|
12
configure.in
12
configure.in
|
@ -1443,7 +1443,8 @@ dnl
|
|||
dnl check whether plugins should be enabled and, if they should be,
|
||||
dnl check for plugins directory - stolen from Amanda's configure.in
|
||||
dnl
|
||||
plugindir="$libdir/wireshark/plugins/$VERSION"
|
||||
dnl we don't wish to expand ${libdir} yet
|
||||
plugindir='${libdir}/wireshark/plugins/${VERSION}'
|
||||
AC_ARG_WITH(plugins,
|
||||
AC_HELP_STRING( [--with-plugins@<:@=DIR@:>@],
|
||||
[support plugins (installed in DIR, if supplied). @<:@default=yes, if possible@:>@]),
|
||||
|
@ -1461,16 +1462,9 @@ AM_CONDITIONAL(HAVE_PLUGINS, test "x$have_plugins" = "xyes")
|
|||
if test x$have_plugins = xyes
|
||||
then
|
||||
AC_DEFINE(HAVE_PLUGINS, 1, [Define if plugins are enabled])
|
||||
plugindir=`(
|
||||
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||
test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
|
||||
eval echo "$plugindir"
|
||||
)`
|
||||
AC_DEFINE_UNQUOTED(PLUGIN_DIR, "$plugindir", [Plugin installation directory])
|
||||
else
|
||||
AC_DEFINE(PLUGIN_DIR, NULL, [Plugin installation directory])
|
||||
fi
|
||||
AC_SUBST(plugindir)
|
||||
CPPFLAGS="$CPPFLAGS '-DPLUGIN_DIR=\"\$(plugindir)\"'"
|
||||
|
||||
#
|
||||
# The plugin dissectors reside in ./plugins/PROTO/
|
||||
|
|
Loading…
Reference in New Issue