fixed xpm support

This commit is contained in:
fluxgen 2003-04-28 22:19:54 +00:00
parent 41c0ea543c
commit 3c3f80fb86

View file

@ -263,7 +263,7 @@ fi
AM_CONDITIONAL(XFT, test x$XFT = xtrue)
AC_MSG_CHECKING([wheter to have Xrender (transparent) support])
AC_MSG_CHECKING([whether to have Xrender (transparent) support])
AC_ARG_ENABLE(
xrender,
[ --enable-xrender Xrender (transparent) support [default=yes]],
@ -281,6 +281,24 @@ AC_ARG_ENABLE(
LIBS="$LIBS -lXrender")
)
AC_MSG_CHECKING([whether to have Xpm (pixmap themes) support])
AC_ARG_ENABLE(
xpm,
[ --enable-xpm Xpm (pixmap themes) support [default=yes]],
if test x$enableval = "xyes"; then
AC_MSG_RESULT([yes])
AC_CHECK_LIB(Xpm, XpmReadFileToPixmap,
AC_DEFINE(HAVE_XPM, 1, "Xpm support")
LIBS="$LIBS -lXpm")
else
AC_MSG_RESULT([no])
fi,
AC_MSG_RESULT([yes])
AC_CHECK_LIB(Xpm, XpmReadFileToPixmap,
AC_DEFINE(HAVE_XPM, 1, "Xpm support")
LIBS="$LIBS -lXpm")
)