From: Thibault Godouet Date: Sun, 7 Jan 2001 12:46:02 +0000 (+0000) Subject: added ./configure's option --with-answer-all X-Git-Tag: ver2_9_4~451 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d354f6a9a7c11df366019abae5f81234d8fc32b6;p=thirdparty%2Ffcron.git added ./configure's option --with-answer-all bug corrected : --with-rootgroup : check /etc/group, not /etc/passwd --- diff --git a/configure.in b/configure.in index f5207fd..2a17c55 100644 --- a/configure.in +++ b/configure.in @@ -416,6 +416,29 @@ DOCDIR="$docdir" AC_DEFINE_UNQUOTED(DOCDIR, "$docdir") AC_SUBST(DOCDIR) +AC_MSG_CHECKING(automatic answer to make install's questions) +AC_ARG_WITH(answer-all, +[ --with-answer-all=[yes|no] Answer the argument to every make install's questions.], +[ case "$withval" in + no) + answerall=0 + AC_MSG_RESULT(yes (answer "no")) + ;; + yes) + answerall=1 + AC_MSG_RESULT(yes (answer "yes")) + ;; + *) + AC_MSG_ERROR(Must be set to either "yes" or "no".) + ;; + esac ], + answerall=2 + AC_MSG_RESULT(no) +) +ANSWERALL="$answerall" +AC_DEFINE_UNQUOTED(ANSWERALL, "$answerall") +AC_SUBST(ANSWERALL) + AC_MSG_CHECKING(root's username) AC_ARG_WITH(rootname, @@ -457,7 +480,7 @@ AC_ARG_WITH(rootgroup, AC_MSG_ERROR(Need rootgroup.) ;; yes) - if cat /etc/passwd | grep "^root:" > /dev/null ; then + if cat /etc/group | grep "^root:" > /dev/null ; then rootgroup=root AC_MSG_RESULT(root) else @@ -465,7 +488,7 @@ AC_ARG_WITH(rootgroup, fi ;; *) - if cat /etc/passwd | grep "^$withval:" > /dev/null ; then + if cat /etc/group | grep "^$withval:" > /dev/null ; then rootgroup=$withval AC_MSG_RESULT(root) else @@ -473,7 +496,7 @@ AC_ARG_WITH(rootgroup, fi ;; esac ], - if cat /etc/passwd | grep "^root:" > /dev/null ; then + if cat /etc/group | grep "^root:" > /dev/null ; then rootgroup=root AC_MSG_RESULT(root) else