1935 |
fi |
fi |
1936 |
fi |
fi |
1937 |
|
|
1938 |
|
### Use session management (-lSM -lICE) if available |
1939 |
|
HAVE_X_SM=no |
1940 |
|
if test "${HAVE_X11}" = "yes"; then |
1941 |
|
AC_CHECK_HEADER(X11/SM/SMlib.h, |
1942 |
|
AC_CHECK_LIB(SM, SmcOpenConnection, HAVE_X_SM=yes, -lICE)) |
1943 |
|
|
1944 |
|
if test "${HAVE_X_SM}" = "yes"; then |
1945 |
|
AC_DEFINE(HAVE_X_SM) |
1946 |
|
case "$LIBS" in |
1947 |
|
*-lSM*) ;; |
1948 |
|
*) LIBS="-lSM -lICE $LIBS" ;; |
1949 |
|
esac |
1950 |
|
fi |
1951 |
|
fi |
1952 |
|
|
1953 |
# If netdb.h doesn't declare h_errno, we must declare it by hand. |
# If netdb.h doesn't declare h_errno, we must declare it by hand. |
1954 |
AC_CACHE_CHECK(whether netdb declares h_errno, |
AC_CACHE_CHECK(whether netdb declares h_errno, |
1955 |
emacs_cv_netdb_declares_h_errno, |
emacs_cv_netdb_declares_h_errno, |