-AC_SUBST(SHAPE)
-
-LIBS="$LIBS $Xext_lib"
-
-dnl Check for the Slit
-SLIT=""
-AC_MSG_CHECKING([whether to include the Slit])
-AC_ARG_ENABLE(
- slit, [ --enable-slit include code for the Slit [default=yes]],
- if test x$enableval = "xyes"; then
- AC_MSG_RESULT([yes])
- SLIT="-DSLIT"
- else
- AC_MSG_RESULT([no])
- fi,
- AC_MSG_RESULT([yes])
- SLIT="-DSLIT"
-)
-AC_SUBST(SLIT)
+if test x$SHAPE = "xyes"; then
+ LIBS="$LIBS -lXext"
+ AC_DEFINE(SHAPE,1,Enable support of the XShape extension)
+fi