rogue5: Add chroot support to the autotools system.
This commit is contained in:
parent
86578e0943
commit
b5102d4a76
2 changed files with 29 additions and 5 deletions
|
|
@ -40,7 +40,7 @@ AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],)
|
|||
AC_CHECK_PROG([TBL], [tbl], [tbl],)
|
||||
AC_CHECK_PROG([SED], [sed], [sed],)
|
||||
|
||||
AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue"] )
|
||||
AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue5"] )
|
||||
PROGRAM=$progname
|
||||
AC_SUBST(PROGRAM)
|
||||
|
||||
|
|
@ -149,6 +149,27 @@ fi
|
|||
|
||||
AC_SUBST(SAVEDIR)
|
||||
|
||||
AC_ARG_ENABLE([destdir],[AC_HELP_STRING([--enable-destdir=DESTDIR], [chroot to install into])],[],[])
|
||||
AC_MSG_CHECKING([for chrooted install])
|
||||
if test "x$enable_destdir" = "xno" ; then
|
||||
DESTDIR=
|
||||
elif test "x$enable_destdir" = "xyes" ; then
|
||||
DESTDIR=
|
||||
elif test "x$enable_destdir" = "x" ; then
|
||||
DESTDIR=
|
||||
else
|
||||
DESTDIR=$enable_destdir
|
||||
fi
|
||||
|
||||
if test "x$DESTDIR" != "x" ; then
|
||||
AC_DEFINE_UNQUOTED([DESTDIR], ["$DESTDIR"], [Define to a chroot to install into])
|
||||
AC_MSG_RESULT([$DESTDIR])
|
||||
else
|
||||
AC_MSG_RESULT([disabled])
|
||||
fi
|
||||
|
||||
AC_SUBST(DESTDIR)
|
||||
|
||||
AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[])
|
||||
AC_MSG_CHECKING([if wizard mode is enabled])
|
||||
if test "x$enable_wizardmode" = "xno" ; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue