added required check for 'GLIBGTOP_GUILE_NAMES'.

* examples/third.c: added required check for
'GLIBGTOP_GUILE_NAMES'.
This commit is contained in:
Martin Baulig
1998-05-20 21:04:10 +00:00
parent a6f0f33112
commit bb959df4b2
2 changed files with 9 additions and 4 deletions

View File

@@ -44,10 +44,14 @@ second_linux_LDADD = $(top_builddir)/sysdeps/common/libgtop_common.la \
@INTLLIBS@ @LIBSUPPORT@ @INTLLIBS@ @LIBSUPPORT@
second_linux_LDFLAGS = -static second_linux_LDFLAGS = -static
if GLIBTOP_NAMES
third_guile_names_LIBS = $(top_builddir)/sysdeps/guile/names/libgtop_guile_names.la
third_names_LIBS = $(top_builddir)/sysdeps/names/libgtop_names.la
endif
third_SOURCES = third.c third_SOURCES = third.c
third_LDADD = $(top_builddir)/sysdeps/guile/libgtop_guile.la \ third_LDADD = $(top_builddir)/sysdeps/guile/libgtop_guile.la \
$(top_builddir)/sysdeps/guile/names/libgtop_guile_names.la \ $(third_guile_names_LIBS) $(third_names_LIBS) \
$(top_builddir)/sysdeps/names/libgtop_names.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \ $(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/lib/libgtop.la \ $(top_builddir)/lib/libgtop.la \
@GUILE_LIBS@ @INTLLIBS@ @LIBSUPPORT@ @GUILE_LIBS@ @INTLLIBS@ @LIBSUPPORT@
@@ -58,8 +62,7 @@ third_static_LDFLAGS = -static
third_linux_SOURCES = $(third_SOURCES) third_linux_SOURCES = $(third_SOURCES)
third_linux_LDADD = $(top_builddir)/sysdeps/guile/libgtop_guile.la \ third_linux_LDADD = $(top_builddir)/sysdeps/guile/libgtop_guile.la \
$(top_builddir)/sysdeps/guile/names/libgtop_guile_names.la \ $(third_guile_names_LIBS) $(third_names_LIBS) \
$(top_builddir)/sysdeps/names/libgtop_names.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \ $(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \ $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
@GUILE_LIBS@ @INTLLIBS@ @LIBSUPPORT@ @GUILE_LIBS@ @INTLLIBS@ @LIBSUPPORT@

View File

@@ -45,7 +45,9 @@ void
main_prog (int argc, char *argv[]) main_prog (int argc, char *argv[])
{ {
glibtop_boot_guile (); glibtop_boot_guile ();
#ifdef GLIBTOP_GUILE_NAMES
glibtop_boot_guile_names (); glibtop_boot_guile_names ();
#endif
gh_repl (argc, argv); gh_repl (argc, argv);
} }