DONT_LEAK_PATH_INFO
INSTALL_NOEXEC
noexec_file
+SOEXT
PLUGINDIR
NOEXECDIR
NOEXECFILE
+
#
if test "$enable_shared" = "no"; then
with_noexec=no
+ enable_dlopen=no
+ lt_cv_dlopen=none
+ lt_cv_dlopen_libs=
else
eval _shrext="$shrext_cmds"
# Darwin uses .dylib for libraries but .so for modules
if test X"$_shrext" = X".dylib"; then
- _shrext2=".so"
+ SOEXT=".so"
else
- _shrext2="$_shrext"
+ SOEXT="$_shrext"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
EOF
cat >>confdefs.h <<EOF
-#define SUDOERS_PLUGIN "sudoers$_shrext2"
+#define SUDOERS_PLUGIN "sudoers${SOEXT}"
EOF
exec_prefix="$oexec_prefix"
AC_SUBST([NOEXECFILE])
AC_SUBST([NOEXECDIR])
AC_SUBST([PLUGINDIR])
+AC_SUBST([SOEXT])
AC_SUBST([noexec_file])
AC_SUBST([INSTALL_NOEXEC])
AC_SUBST([DONT_LEAK_PATH_INFO])
dnl
dnl Defer with_noexec until after libtool magic runs
-dnl XXX - also disable plugins if enable_shared=no
dnl
if test "$enable_shared" = "no"; then
with_noexec=no
+ enable_dlopen=no
+ lt_cv_dlopen=none
+ lt_cv_dlopen_libs=
else
eval _shrext="$shrext_cmds"
# Darwin uses .dylib for libraries but .so for modules
if test X"$_shrext" = X".dylib"; then
- _shrext2=".so"
+ SOEXT=".so"
else
- _shrext2="$_shrext"
+ SOEXT="$_shrext"
fi
fi
AC_MSG_CHECKING(path to sudo_noexec.so)
fi
eval PLUGINDIR="$with_plugindir"
SUDO_DEFINE_UNQUOTED(_PATH_SUDO_PLUGIN_DIR, "$PLUGINDIR/")
- SUDO_DEFINE_UNQUOTED(SUDOERS_PLUGIN, "sudoers$_shrext2")
+ SUDO_DEFINE_UNQUOTED(SUDOERS_PLUGIN, "sudoers${SOEXT}")
exec_prefix="$oexec_prefix"
fi
datarootdir = @datarootdir@
localstatedir = @localstatedir@
plugindir = @PLUGINDIR@
+soext = @SOEXT@
# OS dependent defines
DEFS = @OSDEFS@
install-doc:
install-plugin: install-dirs sample_plugin.la
- $(LIBTOOL) --mode=install --quiet $(INSTALL) -b~ sample_plugin.la $(DESDTDIR)/$(plugindir)
+ $(INSTALL) -b~ -M 0755 .libs/sample_plugin$(soext) $(DESTDIR)$(plugindir)
uninstall:
- -$(LIBTOOL) --mode=uninstall rm -f $(DESDTDIR)/$(plugindir)/sample_plugin.la
+ -rm -f $(DESTDIR)$(plugindir)/sample_plugin$(soext)
check:
datarootdir = @datarootdir@
localstatedir = @localstatedir@
plugindir = @PLUGINDIR@
+soext = @SOEXT@
# OS dependent defines
DEFS = @OSDEFS@
install-doc:
install-plugin: install-dirs sample_group.la
- $(LIBTOOL) --mode=install --quiet $(INSTALL) -b~ sample_group.la $(DESDTDIR)/$(plugindir)
+ $(INSTALL) -b~ -M 0755 .libs/sample_group$(soext) $(DESTDIR)$(plugindir)
uninstall:
- -$(LIBTOOL) --mode=uninstall rm -f $(DESDTDIR)/$(plugindir)/sample_group.la
+ -rm -f $(DESTDIR)$(plugindir)/sample_group$(soext)
check:
datarootdir = @datarootdir@
localstatedir = @localstatedir@
+# File extension for shared objects
+soext = @SOEXT@
+
# Directory in which to install the sudoers plugin
plugindir = @PLUGINDIR@
@LDAP@$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0555 $(srcdir)/sudoers2ldif $(DESTDIR)$(docdir)
install-plugin: sudoers.la install-dirs
- $(LIBTOOL) --mode=install --quiet $(INSTALL) -b~ sudoers.la $(DESTDIR)$(plugindir)
+ $(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -M 0755 .libs/sudoers$(soext) $(DESTDIR)$(plugindir)
install-sudoers: install-dirs
$(INSTALL) -d -O $(sudoers_uid) -G $(sudoers_gid) -M 0750 \
sudoers $(DESTDIR)$(sudoersdir)/sudoers
uninstall:
- -$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/sudoers.la
+ -rm -f $(DESTDIR)$(plugindir)/sudoers$(soext)
-rm -f $(DESTDIR)$(replaydir)/sudoreplay
-rm -f $(DESTDIR)$(visudodir)/visudo
-cmp $(DESTDIR)$(sudoersdir)/sudoers $(srcdir)/sudoers >/dev/null && \