summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac5
2 files changed, 3 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index d4cf4bd8..2a316337 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -63,10 +63,7 @@ rsyslogd_SOURCES = \
gss-misc.h
rsyslogd_CPPFLAGS = -D_PATH_MODDIR=\"$(pkglibdir)/\" $(pthreads_cflags)
-rsyslogd_LDADD = $(zlib_libs) $(pthreads_libs) $(gss_libs)
-if HAVE_LIBDL
-rsyslogd_LDADD += -ldl
-endif
+rsyslogd_LDADD = $(zlib_libs) $(pthreads_libs) $(gss_libs) $(dl_libs) $(rt_libs)
rsyslogd_LDFLAGS = -export-dynamic
man_MANS = rfc3195d.8 rklogd.8 rsyslogd.8 rsyslog.conf.5
diff --git a/configure.ac b/configure.ac
index 5f57de5a..a0ef204e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,9 +30,8 @@ case "${host}" in
esac
# Checks for libraries.
-AC_CHECK_LIB(rt,clock_gettime,,,)
-AC_CHECK_LIB(dl,dlopen,[have_libdl=yes],[have_libdl=no],)
-AM_CONDITIONAL(HAVE_LIBDL, test x$have_libdl=xyes)
+AC_CHECK_LIB(rt,clock_gettime,[dl_libs="-ldl" AC_SUBST(dl_libs)],,)
+AC_CHECK_LIB(dl,dlopen,[rt_libs="-lrt" AC_SUBST(rt_libs)],,)
# Checks for header files.
AC_HEADER_RESOLV