gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c gvusershape.c \
gvc.c
-if DISABLE_LTDL
libgvc_la_LIBADD = \
$(top_builddir)/lib/common/libcommon.la \
$(top_builddir)/lib/graph/libgraph.la \
$(top_builddir)/lib/pathplan/libpathplan.la \
$(top_builddir)/plugin/libplugins.la \
- @GD_LIBS@ @EXPAT_LIBS@ @Z_LIBS@
-else
-libgvc_la_LIBADD = \
- $(top_builddir)/lib/common/libcommon.la \
- $(top_builddir)/lib/graph/libgraph.la \
- $(top_builddir)/lib/pathplan/libpathplan.la \
@GD_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@
-endif
-
EXTRA_DIST = Makefile.old
return libdir;
}
-#ifdef DISABLE_LTDL
extern gvplugin_library_t *builtins[];
-#endif
#ifndef DISABLE_LTDL
static void config_rescan(GVC_t *gvc, char *config_path)
*/
void gvconfig(GVC_t * gvc, boolean rescan)
{
-#ifdef DISABLE_LTDL
gvplugin_library_t **libraryp;
-#else
+#ifndef DISABLE_LTDL
int sz, rc;
struct stat config_st, libdir_st;
FILE *f = NULL;
"cg", NULL, (gvplugin_installed_t *) p);
#endif
-#ifdef DISABLE_LTDL
for (libraryp = builtins; *libraryp; libraryp++) {
gvconfig_plugin_install_from_library(gvc, NULL, *libraryp);
}
-#else
+#ifndef DISABLE_LTDL
/* see if there are any new plugins */
libdir = gvconfig_libdir();
rc = stat(libdir, &libdir_st);