mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
build-sys: add --with-debug-shell=PATH
Distributions may have selinux but not sushell or might
need to set a custom debug shell.
Defaults to /sbin/sushell if selinux is enabled, /bin/sh if not.
[zj: Renamed --with-debugshelltty to --with-debug-tty, and
added a line in output showing DEBUGSHELL and DEBUGTTY.
I figure that debug shell is pretty useful, and I hope
the extra line in configure status will draw attention
to it.]
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
fcf8c44041
commit
45df1f2c9a
30
configure.ac
30
configure.ac
@@ -275,13 +275,23 @@ if test "x$enable_selinux" != "xno"; then
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
|
||||
if test "x${have_selinux}" != xno ; then
|
||||
SUSHELL=/sbin/sushell
|
||||
else
|
||||
SUSHELL=/bin/sh
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(debug-shell,
|
||||
AS_HELP_STRING([--with-debug-shell=PATH],
|
||||
[Path to debug shell binary]),
|
||||
[SUSHELL="$withval"],[
|
||||
AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
|
||||
|
||||
AC_SUBST(SUSHELL)
|
||||
|
||||
AC_ARG_WITH([debug-tty],
|
||||
AS_HELP_STRING([--with-debug-tty=PATH],
|
||||
[Specify the tty device for debug shell]),
|
||||
[DEBUGTTY="$withval"],
|
||||
[DEBUGTTY=/dev/tty9])
|
||||
|
||||
AC_SUBST(DEBUGTTY)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_xz=no
|
||||
AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
|
||||
@@ -757,15 +767,6 @@ AS_IF([test "x$enable_keymap" = "xyes"], [
|
||||
])
|
||||
AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
DEBUGTTY=/dev/tty9
|
||||
AC_ARG_WITH([debugshelltty],
|
||||
[AS_HELP_STRING([--with-debugshelltty=PATH],
|
||||
[Specify the tty device for debug shell])],
|
||||
[DEBUGTTY="$withval"],
|
||||
[])
|
||||
AC_SUBST(DEBUGTTY)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_manpages=no
|
||||
AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
|
||||
@@ -967,6 +968,7 @@ AC_MSG_RESULT([
|
||||
Bash completions dir: ${with_bashcompletiondir}
|
||||
Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
|
||||
Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
|
||||
Debug shell: ${SUSHELL} @ ${DEBUGTTY}
|
||||
|
||||
CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
|
||||
CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
|
||||
|
||||
Reference in New Issue
Block a user