/* acconfig.h
* #ifdefs to be controlled by "configure"
*
- * $Id: acconfig.h,v 1.12 1999/10/14 06:55:11 guy Exp $
+ * $Id: acconfig.h,v 1.13 1999/12/28 04:40:05 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#undef NEED_SNPRINTF_H
#undef NEED_STRERROR_H
+
+#undef PLUGIN_DIR
-# $Id: configure.in,v 1.67 1999/12/26 22:37:19 gerald Exp $
+# $Id: configure.in,v 1.68 1999/12/28 04:40:06 gerald Exp $
dnl
dnl Process this file with autoconf 2.13 or later to produce a
dnl configure script; 2.12 doesn't generate a "configure" script that
dnl blank for now, but will be used in future
AC_SUBST(ethereal_SUBDIRS)
+dnl check for plugins directory - stolen from Amanda's configure.in
+AC_ARG_WITH(plugindir,
+ [ --with-plugindir=DIR install plugins in DIR],
+ [
+ case "$withval" in
+ "" | y | ye | yes | n | no)
+ AC_MSG_ERROR([*** You must supply an argument to the --with-plugindir option.])
+ ;;
+ *) PLUGIN_DIR="$withval"
+ esac
+ ],
+ : ${PLUGIN_DIR=$libdir/ethereal/0.8}
+)
+
+PLUGIN_DIR=`(
+ test "x$prefix" = xNONE && prefix=$ac_default_prefix
+ test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
+ eval echo "$PLUGIN_DIR"
+)`
+AC_DEFINE_UNQUOTED(PLUGIN_DIR,"$PLUGIN_DIR", [Plugin installation directory])
+AC_SUBST(PLUGIN_DIR)
+
dnl libtool defs
AC_LIBLTDL_CONVENIENCE(libltdl)
AC_LIBTOOL_DLOPEN
/* plugins_dlg.c
* Dialog boxes for plugins
*
- * $Id: plugins_dlg.c,v 1.4 1999/12/26 22:37:28 gerald Exp $
+ * $Id: plugins_dlg.c,v 1.5 1999/12/28 04:40:13 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
static gchar *selected_name;
static gchar *selected_version;
static gchar *selected_enabled;
-static gchar std_plug_dir[] = "/usr/share/ethereal/plugins";
-static gchar local_plug_dir[] = "/usr/local/share/ethereal/plugins";
+static gchar std_plug_dir[] = "/usr/lib/ethereal/plugins/0.8";
+static gchar local_plug_dir[] = "/usr/local/lib/ethereal/plugins/0.8";
static gchar *user_plug_dir = NULL;
static void plugins_close_cb(GtkWidget *, gpointer);
{
plugins_scan_dir(std_plug_dir);
plugins_scan_dir(local_plug_dir);
+ if ((strcmp(std_plug_dir, PLUGIN_DIR) != 0) &&
+ (strcmp(local_plug_dir, PLUGIN_DIR) != 0))
+ {
+ plugins_scan_dir(PLUGIN_DIR);
+ }
if (!user_plug_dir)
{
user_plug_dir = (gchar *)g_malloc(strlen(getenv("HOME")) + 19);
# Makefile.am
# Automake file for Ethereal/Gryphon
#
-# $Id: Makefile.am,v 1.2 1999/12/26 22:37:39 gerald Exp $
+# $Id: Makefile.am,v 1.3 1999/12/28 04:40:24 gerald Exp $
#
# Ethereal - Network traffic analyzer
# By Steve Limkemann <stevelim@dgtech.com>
INCLUDES = -I$(top_srcdir) -I$(includedir)
-libdir = $(prefix)/share/@PACKAGE@/plugins/0.8
+plugindir = @PLUGIN_DIR@
-lib_LTLIBRARIES = gryphon.la
+plugin_LTLIBRARIES = gryphon.la
gryphon_la_SOURCES = packet-gryphon.c packet-gryphon.h
gryphon_la_LDFLAGS = -module -avoid-version