summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-04-17 11:37:08 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-04-17 19:53:39 +0200
commitf5890ca723139636cc7c64d79f46e30780f59a25 (patch)
treef9d1dc99b5afa9d8925205a45a90819a4e0ada5c /configure.ac
parent723343269d161b2bba7aee4597357ffc32f26f04 (diff)
Added ttlgen dynamic ttl manifest generator the LV2 plugin.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac35
1 files changed, 31 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 556d3c0..43cef1c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -219,10 +219,37 @@ AC_ARG_ENABLE([lv2],
AS_IF(
[test "x$enable_lv2" = "xyes"],
[enable_lv2=yes
- dnl ======================
- dnl Check for lv2core
- dnl ======================
- PKG_CHECK_MODULES(LV2, lv2 >= 1.0)
+ dnl ======================
+ dnl Check for lv2core
+ dnl ======================
+ PKG_CHECK_MODULES(LV2, lv2 >= 1.0)
+
+ dnl ======================
+ dnl Check for dl library
+ dnl ======================
+ tmp_CXXFLAGS="$CXXFLAGS"
+ tmp_CPPFLAGS="$CPPFLAGS"
+ tmp_CFLAGS="$CFLAGS"
+ tmp_LDFLAGS="$LDFLAGS"
+ tmp_LIBS="$LIBS"
+ CXXFLAGS=""
+ CPPFLAGS=""
+ CFLAGS=""
+ LDFLAGS=""
+ LIBS=""
+ AC_CHECK_HEADER(dlfcn.h, , AC_MSG_ERROR([*** dlfcn.h header file not found!]))
+ AC_CHECK_LIB(c, dlopen, ,
+ AC_CHECK_LIB(dl, dlopen, , AC_MSG_ERROR([*** library conaining dlopen not found!])))
+ DL_CFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS"
+ DL_LIBS="$LDFLAGS $LIBS"
+ CXXFLAGS="$tmp_CXXFLAGS"
+ CPPFLAGS="$tmp_CPPFLAGS"
+ CFLAGS="$tmp_CFLAGS"
+ LDFLAGS="$tmp_LDFLAGS"
+ LIBS="$tmp_LIBS"
+ AC_SUBST(DL_CFLAGS)
+ AC_SUBST(DL_LIBS)
+
AC_ARG_WITH([lv2dir],
AS_HELP_STRING([--with-lv2dir=DIR],
[Use DIR as the lv2 plugin directory [default=LIBDIR/lv2]]),