in libsudo_util.
instead. This option may only be used in conjunction with
the --enable-static-sudoers option.
+ --disable-weak-symbols
+ Disable the use of weak symbols in the libsudo_util library.
+ By default, libsudo_util will provide weak symbols for the
+ sudo_warn_gettext() amd sudo_warn_strerror() functions which
+ may be overridden. If weak symbols are disabled, these
+ functions will be omitted from the library and must be
+ provided by any binary that links against libsudo_util.
+
--enable-zlib[=location]
Enable the use of the zlib compress library when storing
I/O log files. If specified, location is the base directory
enable_rpath
enable_static_sudoers
enable_shared_libutil
+enable_weak_symbols
with_selinux
enable_gss_krb5_ccache_name
enable_shared
binary instead as a plugin
--disable-shared-libutil
Disable use of the libsudo_util shared library.
+ --disable-weak-symbols Disable use of weak symbols in the libsudo_util
+ shared library.
--enable-gss-krb5-ccache-name
Use GSS-API to set the Kerberos V cred cache name
--enable-shared[=PKGS] build shared libraries [default=yes]
fi
+# Check whether --enable-weak_symbols was given.
+if test "${enable_weak_symbols+set}" = set; then :
+ enableval=$enable_weak_symbols;
+else
+ enable_weak_symbols=yes
+fi
+
+
# Check whether --with-selinux was given.
if test "${with_selinux+set}" = set; then :
fi
-if test "$enable_shared_libutil" = "yes"; then
+if test "$enable_shared_libutil$enable_weak_symbols" = "yesyes"; then
# starting point: no aliasing scheme yet...
ax_sys_weak_alias=no
[AS_HELP_STRING([--disable-shared-libutil], [Disable use of the libsudo_util shared library.])],
[], [enable_shared_libutil=yes])
+AC_ARG_ENABLE(weak_symbols,
+[AS_HELP_STRING([--disable-weak-symbols], [Disable use of weak symbols in the libsudo_util shared library.])],
+[], [enable_weak_symbols=yes])
+
AC_ARG_WITH(selinux, [AS_HELP_STRING([--with-selinux], [enable SELinux support])],
[case $with_selinux in
yes) SELINUX_USAGE="[[-r role]] [[-t type]] "
AC_PROG_CC_STDC
AC_C_CONST
AC_C_VOLATILE
-if test "$enable_shared_libutil" = "yes"; then
+if test "$enable_shared_libutil$enable_weak_symbols" = "yesyes"; then
AX_SYS_WEAK_ALIAS
fi
AC_MSG_CHECKING([for variadic macro support in cpp])