move #define SHAPE to config.h instead of -DSHAPE on command line
Mark Tiefenbruck mark@fluxbox.org
1 files changed,
12 insertions(+),
21 deletions(-)
jump to
M
configure.in
→
configure.in
@@ -178,32 +178,23 @@
Xext_lib="" dnl Check for XShape extension support and proper library files. -SHAPE="" AC_MSG_CHECKING([whether to build support for the XShape extension]) AC_ARG_ENABLE( - shape, [ --enable-shape enable support of the XShape extension ([default=yes])]) + shape, [ --enable-shape enable support of the XShape extension ([default=yes])], + if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) + AC_CHECK_LIB(Xext, XShapeCombineShape, + AC_DEFINE(SHAPE, 1, "shaped window support") + LIBS="$LIBS -lXext") + else + AC_MSG_RESULT([no]) + fi, -: ${enableval="yes"} -if test x$enableval = "xyes"; then AC_MSG_RESULT([yes]) AC_CHECK_LIB(Xext, XShapeCombineShape, - AC_MSG_CHECKING([for X11/extensions/shape.h]) - AC_TRY_LINK( -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#include <X11/extensions/shape.h> -, long foo = ShapeSet, - AC_MSG_RESULT([yes]) - SHAPE="-DSHAPE"; Xext_lib="-lXext", - AC_MSG_RESULT([no]) - ) - ) -else - AC_MSG_RESULT([no]) -fi -AC_SUBST(SHAPE) -CXXFLAGS="$CXXFLAGS $SHAPE" -LIBS="$LIBS $Xext_lib" + AC_DEFINE(SHAPE, 1, "shaped window support") + LIBS="$LIBS -lXext") +) dnl Check for the Slit AC_MSG_CHECKING([whether to include the Slit])