Fix: don't accept configure --disable-shared
[lttng-ust.git] / configure.ac
index f3bce8daf6a369f733de76ff239353c3473465e1..feee4e17054530c29e8c550a11874ef6419f44f5 100644 (file)
@@ -266,6 +266,16 @@ AS_IF([test "x$with_sdt" = "xyes"],[
        ])
 ])
 
+AC_MSG_CHECKING([whether shared libraries are enabled])
+AS_IF([test "x$enable_shared" = "xyes"],
+       [
+               AC_MSG_RESULT([yes])
+       ],
+       [
+               AC_MSG_RESULT([no])
+               AC_MSG_ERROR([LTTng-UST requires shared libraries to be enabled])
+       ])
+
 AC_ARG_WITH([lttng-system-rundir],
        AS_HELP_STRING([--with-lttng-system-rundir],
        [Location of the system directory where LTTng-UST expects the system-wide lttng-sessiond runtime files. The default is "/var/run/lttng".]),
This page took 0.022788 seconds and 4 git commands to generate.