Fix BM_DEPEND_CHECK().

(Old svn revision: 328)
master
Benedikt Meurer 2004-07-28 21:49:36 +00:00
parent a4fece2acf
commit 3d232ad4e8
1 changed files with 17 additions and 0 deletions

View File

@ -25,6 +25,7 @@ AC_HELP_STRING([--disable-$4], [Disable checking for $5]),
AC_MSG_RESULT([yes])
BM_DEPEND([$1], [$2], [$3])
AC_DEFINE([HAVE_$1], [1], [Define if you have $2 >= $3])
$1_FOUND="yes"
else
AC_MSG_RESULT([no])
fi
@ -61,3 +62,19 @@ AC_HELP_STRING([--with-pluginsdir=DIR], [Install plugins dir DIR]),
AC_SUBST([$1_PLUGINSDIR])
AC_MSG_RESULT([$$1_PLUGINSDIR])
])
dnl
dnl XFCE_MCS_PLUGIN(var, version)
dnl
dnl sets $var_CFLAGS, $var_LIBS and $var_PLUGINSDIR
dnl
AC_DEFUN([XFCE_MCS_PLUGIN],
[
BM_DEPEND([$1], [xfce-mcs-manager], [$2])
dnl Check where to put the plugins to
AC_MSG_CHECKING([where to install MCS plugins])
$1_PLUGINSDIR=`$PKG_CONFIG --variable=pluginsdir xfce-mcs-manager`
AC_SUBST([$1_PLUGINSDIR])
AC_MSG_RESULT([$$1_PLUGINSDIR])
])