aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-x-checks.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros/gnome-x-checks.m4')
-rw-r--r--macros/gnome-x-checks.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/macros/gnome-x-checks.m4 b/macros/gnome-x-checks.m4
index 4ffe519fe9..fef8a8fec8 100644
--- a/macros/gnome-x-checks.m4
+++ b/macros/gnome-x-checks.m4
@@ -29,12 +29,19 @@ AC_DEFUN([GNOME_X_CHECKS],
LDFLAGS="$saved_ldflags $X_LDFLAGS $X_LIBS"
dnl Assume that if we have -lSM then we also have -lICE.
- AC_CHECK_LIB(SM, SmcSaveYourselfDone,
+ case "$x_libs" in
+ *-lSM*)
+ # Already found it.
+ ;;
+ *)
+ AC_CHECK_LIB(SM, SmcSaveYourselfDone,
[AC_DEFINE(HAVE_LIBSM)
x_libs="$x_libs -lSM -lICE"], ,
$x_libs -lICE)
AM_CONDITIONAL(ENABLE_GSM,
test "x$ac_cv_lib_SM_SmcSaveYourselfDone" = "xyes")
+ ;;
+ esac
AC_CHECK_LIB(gtk, gdk_pixmap_unref,
GTK_LIBS="-lgtk -lgdk -lglib -lm",