mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
to check if dynamic module support is on
This commit is contained in:
parent
8866a28fb3
commit
32f4b97657
1 changed files with 2 additions and 1 deletions
|
|
@ -712,6 +712,7 @@ esac
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl Check for module support
|
dnl Check for module support
|
||||||
ol_link_modules=no
|
ol_link_modules=no
|
||||||
|
WITH_MODULES_ENABLED=no
|
||||||
if test $ol_enable_modules != no ; then
|
if test $ol_enable_modules != no ; then
|
||||||
AC_CHECK_HEADERS(ltdl.h)
|
AC_CHECK_HEADERS(ltdl.h)
|
||||||
|
|
||||||
|
|
@ -728,6 +729,7 @@ if test $ol_enable_modules != no ; then
|
||||||
AC_MSG_ERROR([could not locate libtool -lltdl])
|
AC_MSG_ERROR([could not locate libtool -lltdl])
|
||||||
fi
|
fi
|
||||||
ol_link_modules=yes
|
ol_link_modules=yes
|
||||||
|
WITH_MODULES_ENABLED=yes
|
||||||
|
|
||||||
else
|
else
|
||||||
for i in $Backends; do
|
for i in $Backends; do
|
||||||
|
|
@ -2588,7 +2590,6 @@ if test "$ol_link_modules" != no ; then
|
||||||
AC_DEFINE(SLAPD_MODULES,1,[define to support modules])
|
AC_DEFINE(SLAPD_MODULES,1,[define to support modules])
|
||||||
BUILD_SLAPD=yes
|
BUILD_SLAPD=yes
|
||||||
SLAPD_MODULES_LDFLAGS="-dlopen self"
|
SLAPD_MODULES_LDFLAGS="-dlopen self"
|
||||||
WITH_MODULES_ENABLED=yes
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_DEFINE(SLAPD_MOD_STATIC,1,[statically linked module])
|
AC_DEFINE(SLAPD_MOD_STATIC,1,[statically linked module])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue