summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-05-20 21:04:10 +0000
committerMartin Baulig <martin@src.gnome.org>1998-05-20 21:04:10 +0000
commitbb959df4b22ed342efb4d7a6d6745711afb595c0 (patch)
tree72d9944239d38d7d5aa630cb2214cff6a0f46a0b /examples
parenta6f0f33112617268ec70bf9b915b508621547589 (diff)
downloadlibgtop-bb959df4b22ed342efb4d7a6d6745711afb595c0.tar.gz
added required check for 'GLIBGTOP_GUILE_NAMES'.
* examples/third.c: added required check for 'GLIBGTOP_GUILE_NAMES'.
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am11
-rw-r--r--examples/third.c2
2 files changed, 9 insertions, 4 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 6c50866d..5200b328 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -44,10 +44,14 @@ second_linux_LDADD = $(top_builddir)/sysdeps/common/libgtop_common.la \
@INTLLIBS@ @LIBSUPPORT@
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_LDADD = $(top_builddir)/sysdeps/guile/libgtop_guile.la \
- $(top_builddir)/sysdeps/guile/names/libgtop_guile_names.la \
- $(top_builddir)/sysdeps/names/libgtop_names.la \
+ $(third_guile_names_LIBS) $(third_names_LIBS) \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/lib/libgtop.la \
@GUILE_LIBS@ @INTLLIBS@ @LIBSUPPORT@
@@ -58,8 +62,7 @@ third_static_LDFLAGS = -static
third_linux_SOURCES = $(third_SOURCES)
third_linux_LDADD = $(top_builddir)/sysdeps/guile/libgtop_guile.la \
- $(top_builddir)/sysdeps/guile/names/libgtop_guile_names.la \
- $(top_builddir)/sysdeps/names/libgtop_names.la \
+ $(third_guile_names_LIBS) $(third_names_LIBS) \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
@GUILE_LIBS@ @INTLLIBS@ @LIBSUPPORT@
diff --git a/examples/third.c b/examples/third.c
index d4160425..9d1ce168 100644
--- a/examples/third.c
+++ b/examples/third.c
@@ -45,7 +45,9 @@ void
main_prog (int argc, char *argv[])
{
glibtop_boot_guile ();
+#ifdef GLIBTOP_GUILE_NAMES
glibtop_boot_guile_names ();
+#endif
gh_repl (argc, argv);
}