summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-05-31 00:02:54 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-05-31 00:02:54 +0000
commit3a745537f04abf6a78224260dda7b13f6c35d55c (patch)
tree95329d8b348949ab0b9e98b3742f6cd8d7853cec /configure.in
parent3d62f360fe620b52d8d2c3909c43894335d118af (diff)
downloadmetacity-3a745537f04abf6a78224260dda7b13f6c35d55c.tar.gz
metacity-3a745537f04abf6a78224260dda7b13f6c35d55c.tar.bz2
verbose-log on startup whether we were compiled with various extensions
2002-05-30 Havoc Pennington <hp@redhat.com> * src/main.c (main): verbose-log on startup whether we were compiled with various extensions * src/display.c (meta_display_queue_retheme_all_windows): reapply shape mask when changing themes, sucks to do it here though, makes theme changing slower. Needs fixing. * src/theme-parser.c (parse_toplevel_element): parse rounded corner options to frame_geometry * src/frames.c (meta_frames_apply_shapes): apply rounded corners if requested by the theme * configure.in (HAVE_SHAPE): check for shape extension
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index bf6a8c6..fcee26f 100644
--- a/configure.in
+++ b/configure.in
@@ -110,6 +110,18 @@ if test "$found_xinerama" = "true"; then
AC_DEFINE(HAVE_XINERAMA)
fi
+SHAPE_LIBS=
+found_shape=false
+AC_CHECK_LIB(Xext, XShapeQueryExtension,
+ [AC_CHECK_HEADERS(X11/extensions/shape.h,
+ SHAPE_LIBS=-lXext found_shape=true)],
+ , -lXext $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
+
+if test "$found_shape" = "true"; then
+ AC_DEFINE(HAVE_SHAPE)
+fi
+
+## we don't put SHAPE_LIBS in here, they should be in X_EXTRA_LIBS I think. we'll see
METACITY_LIBS="$XINERAMA_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $METACITY_LIBS"
METACITY_MESSAGE_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $METACITY_MESSAGE_LIBS"
METACITY_WINDOW_DEMO_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $METACITY_WINDOW_DEMO_LIBS"