diff --git a/configure.ac b/configure.ac index 372658b..bb857f8 100644 --- a/configure.ac +++ b/configure.ac @@ -433,6 +433,8 @@ dnl CFLAGS="${CFLAGS_save}" LDFLAGS="${LDFLAGS_save}" +AM_CONDITIONAL(HAVE_MONITOR, false) + AC_CHECK_LIB(gdbm, gdbm_open, ac_cv_my_have_gdbm=yes, ac_cv_my_have_gdbm=no) AM_CONDITIONAL(HAVE_GDBM, test "${ac_cv_my_have_gdbm}" = "yes") diff --git a/lib/misc/Makefile.am b/lib/misc/Makefile.am index 69a6f4e..7265bce 100644 --- a/lib/misc/Makefile.am +++ b/lib/misc/Makefile.am @@ -7,7 +7,7 @@ pkglib_LTLIBRARIES = \ regexp.la \ debug.la \ $(gdbm_la) \ - monitor.la \ + $(monitor_la) \ record.la \ struct.la \ $(newhandler_la) \ @@ -40,6 +40,9 @@ gdbm_la_SOURCES = gdbm.c gdbm_la_LDFLAGS = -module -avoid-version gdbm_la_LIBADD = $(top_builddir)/src/libelk.la -lgdbm +if HAVE_MONITOR +monitor_la = monitor.la +endif monitor_la_SOURCES = monitor.c monitor_la_LDFLAGS = -module -avoid-version monitor_la_LIBADD = $(top_builddir)/src/libelk.la