diff options
author | waker <wakeroid@gmail.com> | 2011-05-04 21:30:07 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-04 21:30:07 +0200 |
commit | 745fa29c0fe4860a67da698c17057d687f1b9bc7 (patch) | |
tree | c500e90f45824f411f1b62db4647afb34aac8366 /configure.ac | |
parent | cb70ca95251e9140aa759d76d18b5fb6e5bfeeaf (diff) |
detect the need for linking to libdl.so in configure
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 575d795c..ede78b60 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,9 @@ if test "x$enable_staticlink" != "xno" ; then STATICLINK=yes fi +dnl check for libdl +AC_CHECK_LIB([dl], [main], [HAVE_DL=yes;DL_LIBS="-ldl";AC_SUBST(DL_LIBS)]) + if test "x$enable_portable" != "xno" && test "x$enable_staticlink" != "xno" ; then AC_DEFINE_UNQUOTED([PORTABLE], [1], [Define if building portable version]) PORTABLE=yes @@ -450,7 +453,7 @@ fi if test "x$enable_src" != "xno" ; then if test "x$enable_staticlink" != "xno" ; then - LIBSAMPLERATE_DEPS_LIBS="../../$LIB/libsamplerate.a -lpthread -ldl" + LIBSAMPLERATE_DEPS_LIBS="../../$LIB/libsamplerate.a -lpthread ${DL_LIBS}" AC_SUBST(LIBSAMPLERATE_DEPS_LIBS) HAVE_DSP_SRC=yes else |