From f07bc86d04ab4e2ea471306c2f54c9c702076b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 22 Jul 2017 16:23:37 +0200 Subject: Fix FTBFS on Mageia 6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot Signed-off-by: Slávek Banko --- acl-updater/plugin/Makefile.am | 4 ++-- acl-updater/plugin/configure.in.in | 6 ++++++ acl-updater/plugin/interface.c | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 acl-updater/plugin/configure.in.in diff --git a/acl-updater/plugin/Makefile.am b/acl-updater/plugin/Makefile.am index e0a1924..d1d2ed8 100644 --- a/acl-updater/plugin/Makefile.am +++ b/acl-updater/plugin/Makefile.am @@ -3,5 +3,5 @@ INCLUDES = $(all_includes) $(KDE_INCLUDES)/tde -I$(top_srcdir) $(KRB5_CFLAGS) lib_LTLIBRARIES = slapi-acl-manager.la slapi_acl_manager_la_SOURCES = interface.c plugin.cpp plugin.h -slapi_acl_manager_la_LIBADD = -ltqt-mt -ltdeldap -slapi_acl_manager_la_LDFLAGS = -module -avoid-version $(all_libraries) $(KRB5_LIBS) \ No newline at end of file +slapi_acl_manager_la_LIBADD = -ltqt-mt -ltdeldap $(SLAPI_LIBRARIES) +slapi_acl_manager_la_LDFLAGS = -module -avoid-version $(all_libraries) $(KRB5_LIBS) diff --git a/acl-updater/plugin/configure.in.in b/acl-updater/plugin/configure.in.in new file mode 100644 index 0000000..9feb979 --- /dev/null +++ b/acl-updater/plugin/configure.in.in @@ -0,0 +1,6 @@ + +# Check for slapi-plugin.h +AC_CHECK_HEADERS(slapi-plugin.h) + +# Check for the slapi library +AC_CHECK_LIB(slapi, slapi_pblock_get, AC_SUBST(SLAPI_LIBRARIES, "-lslapi"), [], [-shared -fPIC]) diff --git a/acl-updater/plugin/interface.c b/acl-updater/plugin/interface.c index da85863..a5e2e28 100644 --- a/acl-updater/plugin/interface.c +++ b/acl-updater/plugin/interface.c @@ -18,6 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include "config.h" + #ifdef HAVE_SLAPI_PLUGIN_H #include #else -- cgit v1.2.1