Rename `CATACOMB_LIBS' to `MATHLIBS' and use it explicitly in some of
the utility builds.
If the main library needs more library dependencies then it'll probably
be best to sort them out in the Makefile.
lib_LTLIBRARIES = libcatacomb.la
libcatacomb_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO)
-libcatacomb_la_LIBADD = $(CATACOMB_LIBS) $(mLib_LIBS)
+libcatacomb_la_LIBADD = $(MATHLIBS) $(mLib_LIBS)
libcatacomb_la_SOURCES =
## Basic utilities.
AC_CHECK_TYPE([socklen_t], [int])
dnl The maths library.
-mdw_ORIG_LIBS=$LIBS
+mdw_ORIG_LIBS=$LIBS LIBS=
AC_SEARCH_LIBS([log], [m])
AC_SEARCH_LIBS([sqrt], [m])
-AC_SUBST([CATACOMB_LIBS], [$LIBS])
+AC_SUBST([MATHLIBS], [$LIBS])
LIBS=$mdw_ORIG_LIBS
dnl Find out whether very long integer types are available.
## Generate passphrases with given entropy using wordlists and Markov models.
bin_PROGRAMS += mkphrase
dist_man_MANS += mkphrase.1
+mkphrase_LDADD = $(LDADD) $(MATHLIBS)
## Performance testing.
bin_PROGRAMS += perftest
+perftest_LDADD = $(LDADD) $(MATHLIBS)
## Remember passphrases for limited periods of time.
bin_PROGRAMS += pixie