diff options
author | Joakim Verona <joakim@verona.se> | 2015-02-08 21:55:28 +0100 |
---|---|---|
committer | Joakim Verona <joakim@verona.se> | 2015-02-08 21:55:28 +0100 |
commit | 5e1d5ef39ca0d2fbff26d659f2ec6ce863b14529 (patch) | |
tree | 860e0d53399626aee6249ebb5f972879f403b228 /configure.ac | |
parent | 148262ce3db990ed16989341345e232570b3a338 (diff) | |
parent | 7d631aa0ffab875e4979727f632703ad5b4100a2 (diff) | |
download | emacs-xwidget.tar.gz |
merge masterxwidget
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index a679bd0a240..3874cf1ee96 100644 --- a/configure.ac +++ b/configure.ac @@ -399,17 +399,12 @@ AC_ARG_WITH(gameuser,dnl An argument prefixed by ':' specifies a group instead.])]) gameuser= gamegroup= +# We don't test if we can actually chown/chgrp here, because configure +# may run without root privileges. lib-src/Makefile.in will handle +# any errors due to missing user/group gracefully. case ${with_gameuser} in no) ;; - "" | yes) - AC_MSG_CHECKING([whether a 'games' user exists]) - if id -u games >/dev/null 2>&1; then - AC_MSG_RESULT([yes]) - gameuser=games - else - AC_MSG_RESULT([no]) - fi - ;; + "" | yes) gamegroup=games ;; :*) gamegroup=`echo "${with_gameuser}" | sed -e "s/://"` ;; *) gameuser=${with_gameuser} ;; esac |