From: ayin Date: Sun, 22 Jan 2006 17:00:42 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=b305a1dec55364893eb4b2e6a47c70b45a158961;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/configure.ac b/configure.ac index 36addd4a..801d5aa7 100644 --- a/configure.ac +++ b/configure.ac @@ -807,11 +807,11 @@ dnl# now add and remove other stuff dnl# -------------------------------------------------------------------------- if test x$support_xft = xyes; then AC_PATH_PROG(PKG_CONFIG, pkg-config, no) - AC_PATH_PROG(XFT_CONFIG, xft-config, no) if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then LIBS="$LIBS `$PKG_CONFIG xft --libs`" CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" else + AC_PATH_PROG(XFT_CONFIG, xft-config, no) if test $XFT_CONFIG != no; then LIBS="$LIBS `$XFT_CONFIG --libs`" CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" diff --git a/ptytty.m4 b/ptytty.m4 index 5fd4fba1..da71ee2c 100644 --- a/ptytty.m4 +++ b/ptytty.m4 @@ -443,3 +443,33 @@ else AC_MSG_ERROR([libptytty requires unix-compliant filehandle passing ability]) fi ]) + +AC_DEFUN([TTY_GROUP_CHECK], +[ +AC_CACHE_CHECK([for tty group], tty_group, +[AC_TRY_RUN([ +#include +#include +#include +#include + +main() +{ + struct stat st; + struct group *gr; + char *tty; + gr = getgrnam("tty"); + tty = ttyname(0); + if (gr != 0 + && tty != 0 + && (stat(tty, &st)) == 0 + && st.st_gid == gr->gr_gid) + return 0; + else + return 1; +}], +[tty_group=yes],[tty_group=no],[tty_group=no])]) +if test x$tty_group = xyes; then + AC_DEFINE(TTY_GID_SUPPORT, 1, "") +fi]) +