#! /bin/sh
-# From configure.ac Id: 1474b45525096400dfe04a380b8784f1d6744466 .
+# From configure.ac Id: 713e57eb20821ddb450048065b44405afaf1dc47 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71.
#
SLAPD_SQL_LDFLAGS
SLAPD_GMP_LIBS
SLAPD_SLP_LIBS
-SYSTEMD_LIBS
ARGON2_LIBS
AUTH_LIBS
LIBSLAPI
OL_VERSIONED_SYMBOLS
BUILD_LIBS_DYNAMIC
BUILD_THREAD
-WITH_SYSTEMD
WITH_ACI_ENABLED
WITH_MODULES_ENABLED
WITH_TLS
SLAPI_LIBS=
LIBSLAPI=
AUTH_LIBS=
-SYSTEMD_LIBS=
SLAPD_SLP_LIBS=
SLAPD_GMP_LIBS=
fi
fi
-WITH_SYSTEMD=no
systemdsystemunitdir=
-ol_link_systemd=no
if test $ol_enable_slapd = no && test $ol_enable_balancer != yes ; then
if test $ol_with_systemd != no ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: servers disabled, ignoring --with-systemd=$ol_with_systemd argument" >&5
ol_with_systemd=no
fi
fi
-if test $ol_with_systemd != no ; then
+
+if test $ol_with_systemd = auto; then
ac_fn_c_check_header_compile "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
then :
fi
-
if test $ac_cv_header_systemd_sd_daemon_h = yes; then
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd" >&5
-printf %s "checking for sd_notify in -lsystemd... " >&6; }
-if test ${ac_cv_lib_systemd_sd_notify+y}
-then :
- printf %s "(cached) " >&6
-else $as_nop
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsystemd $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-char sd_notify ();
-int
-main (void)
-{
-return sd_notify ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"
-then :
- ac_cv_lib_systemd_sd_notify=yes
-else $as_nop
- ac_cv_lib_systemd_sd_notify=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sd_notify" >&5
-printf "%s\n" "$ac_cv_lib_systemd_sd_notify" >&6; }
-if test "x$ac_cv_lib_systemd_sd_notify" = xyes
-then :
- ol_link_systemd="-lsystemd"
-fi
-
+ ol_with_systemd=yes
fi
+fi
- if test $ol_link_systemd = no ; then
- if test $ol_with_systemd != auto ; then
- as_fn_error $? "Could not locate systemd" "$LINENO" 5
- else
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate systemd" >&5
-printf "%s\n" "$as_me: WARNING: Could not locate systemd" >&2;}
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: systemd service notification not supported!" >&5
-printf "%s\n" "$as_me: WARNING: systemd service notification not supported!" >&2;}
- fi
- else
+if test $ol_with_systemd = yes ; then
printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h
- SYSTEMD_LIBS="$ol_link_systemd"
- WITH_SYSTEMD=yes
-
if test -n "$systemdsystemunitdir"; then
pkg_cv_systemdsystemunitdir="$systemdsystemunitdir"
then :
fi
- if test -z "$systemdsystemunitdir"; then
- if test -d /usr/lib/systemd/system; then
- systemdsystemunitdir=/usr/lib/systemd/system
- else
- systemdsystemunitdir=/lib/systemd/system
- fi
+ if test -z "$systemdsystemunitdir"; then
+ if test -d /usr/lib/systemd/system; then
+ systemdsystemunitdir=/usr/lib/systemd/system
+ else
+ systemdsystemunitdir=/lib/systemd/system
fi
fi
fi
-
-