[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/configure.in
From: |
Colin Walters |
Subject: |
[Emacs-diffs] Changes to emacs/configure.in |
Date: |
Mon, 29 Apr 2002 18:47:27 -0400 |
Index: emacs/configure.in
diff -c emacs/configure.in:1.295 emacs/configure.in:1.296
*** emacs/configure.in:1.295 Fri Apr 26 19:39:04 2002
--- emacs/configure.in Mon Apr 29 18:47:27 2002
***************
*** 42,57 ****
AC_ARG_WITH(game-dir,
[ --with-game-dir use a shared game directory if possible],
! [if test "$withval" = yes; then
! gamedir="${localstatedir}/games/emacs"
! else
! if test "$withval" = no; then
! gamedir=no
! else
! gamedir="$withval"
! fi
! fi
])
gameuser=games
AC_ARG_WITH(game-user,
--- 42,58 ----
AC_ARG_WITH(game-dir,
[ --with-game-dir use a shared game directory if possible],
! [
! gamedir="$withval"
])
+ if test "$gamedir" = yes; then
+ gamedir="${localstatedir}/games/emacs"
+ fi
+ eval tgamedir=\"$gamedir\"
+ if test "$gamedir" != no; then
+ AC_DEFINE_UNQUOTED(HAVE_SHARED_GAME_DIR, "$tgamedir",
+ [Define to the name of the shared game directory.])
+ fi
gameuser=games
AC_ARG_WITH(game-user,
***************
*** 1495,1520 ****
dnl checks for operating system services
AC_SYS_LONG_FILE_NAMES
- if test "$gamedir" = no; then :
- else
- AC_MSG_CHECKING([for access to game group "$gameuser"])
- rm -f conf$$chown.file
- touch conf$$chown.file
- dnl If we can't chown a file to group games, then the users
- dnl can't share scores.
- if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then
- AC_MSG_RESULT([yes])
- if test "$gamedir" = "yes"; then
- gamedir="${localstatedir}/games/emacs"
- fi
- eval tgamedir=\"$gamedir\"
- AC_DEFINE_UNQUOTED(HAVE_SHARED_GAME_DIR, "$tgamedir",
- [Define to the name of the shared game directory.])
- else
- AC_MSG_RESULT([no])
- gamedir=no
- fi
- fi
#### Choose a window system.
AC_PATH_X
--- 1496,1501 ----