1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-21 18:23:59 +00:00

Added test for X Session Management (HAVE_X_SM).

This commit is contained in:
Jan Djärv 2002-03-10 16:37:56 +00:00
parent d873ec96b5
commit f21fadcce4
2 changed files with 636 additions and 511 deletions

1132
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1935,6 +1935,21 @@ if test "${HAVE_X11}" = "yes"; then
fi
fi
### Use session management (-lSM -lICE) if available
HAVE_X_SM=no
if test "${HAVE_X11}" = "yes"; then
AC_CHECK_HEADER(X11/SM/SMlib.h,
AC_CHECK_LIB(SM, SmcOpenConnection, HAVE_X_SM=yes, -lICE))
if test "${HAVE_X_SM}" = "yes"; then
AC_DEFINE(HAVE_X_SM)
case "$LIBS" in
*-lSM*) ;;
*) LIBS="-lSM -lICE $LIBS" ;;
esac
fi
fi
# If netdb.h doesn't declare h_errno, we must declare it by hand.
AC_CACHE_CHECK(whether netdb declares h_errno,
emacs_cv_netdb_declares_h_errno,