emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bad configure check


From: Andreas Schwab
Subject: Bad configure check
Date: Thu, 25 Apr 2002 16:19:46 +0200
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux)

This configure check is bad:

  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

The ability to do chown depends on the environment, this cannot be checked
at configure time.  The user who runs configure is usually different to
the user who runs Emacs.  The test must be performed at runtime.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 N├╝rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]