mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
add ability to --disable-shape
2003-01-11 Havoc Pennington <hp@pobox.com> * configure.in: add ability to --disable-shape
This commit is contained in:
parent
374e5d400d
commit
339a86150b
@ -1,3 +1,7 @@
|
||||
2003-01-11 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* configure.in: add ability to --disable-shape
|
||||
|
||||
2003-01-11 Akira TAGOH <tagoh@gnome.gr.jp>
|
||||
|
||||
* configure.in: fix the behavior of --enable-*.
|
||||
|
13
configure.in
13
configure.in
@ -111,6 +111,8 @@ AC_ARG_ENABLE(startup-notification, [ --disable-startup-notification
|
||||
|
||||
AC_ARG_ENABLE(xsync, [ --disable-xsync disable metacity's use of the XSync extension],,enable_xsync=auto)
|
||||
|
||||
AC_ARG_ENABLE(shape, [ --disable-shape disable metacity's use of the shaped window extension],,enable_shape=auto)
|
||||
|
||||
## try definining HAVE_BACKTRACE
|
||||
AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
|
||||
|
||||
@ -218,6 +220,17 @@ AC_CHECK_LIB(Xext, XShapeQueryExtension,
|
||||
SHAPE_LIBS=-lXext found_shape=yes)],
|
||||
, $ALL_X_LIBS)
|
||||
|
||||
if test x$enable_shape = xno; then
|
||||
found_shape=no
|
||||
fi
|
||||
|
||||
if test x$enable_shape = xyes; then
|
||||
if test "$found_shape" = "no"; then
|
||||
AC_MSG_ERROR([--enable-shape forced and Shape not found])
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "x$found_shape" = "xyes"; then
|
||||
AC_DEFINE(HAVE_SHAPE, , [Have the shape extension library])
|
||||
fi
|
||||
|
@ -919,7 +919,7 @@ meta_frames_apply_shapes (MetaFrames *frames,
|
||||
frame->shape_applied = TRUE;
|
||||
|
||||
XDestroyRegion (window_xregion);
|
||||
#endif
|
||||
#endif /* HAVE_SHAPE */
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user