comparison configure.in @ 43824:0f0939983d10

Added test for X Session Management (HAVE_X_SM).
author Jan Djärv <jan.h.d@swipnet.se>
date Sun, 10 Mar 2002 16:37:56 +0000
parents 050eee3f784f
children 0d25d20876a2
comparison
equal deleted inserted replaced
43823:1cd3145c26b8 43824:0f0939983d10
1933 if test "${HAVE_GIF}" = "yes"; then 1933 if test "${HAVE_GIF}" = "yes"; then
1934 AC_DEFINE(HAVE_GIF) 1934 AC_DEFINE(HAVE_GIF)
1935 fi 1935 fi
1936 fi 1936 fi
1937 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
1938 # If netdb.h doesn't declare h_errno, we must declare it by hand. 1953 # If netdb.h doesn't declare h_errno, we must declare it by hand.
1939 AC_CACHE_CHECK(whether netdb declares h_errno, 1954 AC_CACHE_CHECK(whether netdb declares h_errno,
1940 emacs_cv_netdb_declares_h_errno, 1955 emacs_cv_netdb_declares_h_errno,
1941 [AC_TRY_LINK([#include <netdb.h>], 1956 [AC_TRY_LINK([#include <netdb.h>],
1942 [return h_errno;], 1957 [return h_errno;],