From 5ddcdf2ecee62c5889e9d07d4e0d84cf75ef5859 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 15 Nov 2009 15:31:11 +0100 Subject: [PATCH] configure.ac: add AUBIO_LIBS, now needs only -lm (closes: #553930) --- configure.ac | 4 ++++ examples/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 57fdda00..ea41f080 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,9 @@ AC_PROG_INSTALL AUBIO_CFLAGS= +AC_CHECK_LIB(m, floorf) +AUBIO_LIBS="-lm" + dnl Enable double precision (no) AC_ARG_ENABLE(double, AC_HELP_STRING([--enable-double],[compile in double precision [[default=no]]]), @@ -231,6 +234,7 @@ AC_ARG_ENABLE(testprogs, AM_CONDITIONAL(COMPILE_TESTS,test "${with_testprogs}" != "no") AC_SUBST(AUBIO_CFLAGS) +AC_SUBST(AUBIO_LIBS) dnl Check for swig and python dnl should check for swig version and python headers diff --git a/examples/Makefile.am b/examples/Makefile.am index 8372d9f3..a32ecea2 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,6 +1,6 @@ # global flags AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -DPACKAGE=\"@PACKAGE@\" -I$(top_srcdir)/src @AUBIO_CFLAGS@ @LASH_CFLAGS@ @SNDFILE_CFLAGS@ @JACK_CFLAGS@ -AM_LDFLAGS = -L$(top_builddir)/src -laubio @LASH_LIBS@ +AM_LDFLAGS = -L$(top_builddir)/src -laubio @AUBIO_LIBS@ @LASH_LIBS@ # add your programs to this list bin_PROGRAMS = \ -- 2.26.2