mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-29 19:56:07 -04:00
Added --enable-ruby-plugins option to configure.ac
This commit is contained in:
parent
62d4360863
commit
a33ca6238d
15
configure.ac
15
configure.ac
@ -30,6 +30,8 @@ AS_IF([test "x$host_os" = xcygwin],
|
|||||||
### Options
|
### Options
|
||||||
AC_ARG_ENABLE([notifications],
|
AC_ARG_ENABLE([notifications],
|
||||||
[AS_HELP_STRING([--enable-notifications], [enable desktop notifications])])
|
[AS_HELP_STRING([--enable-notifications], [enable desktop notifications])])
|
||||||
|
AC_ARG_ENABLE([ruby-plugins],
|
||||||
|
[AS_HELP_STRING([--enable-ruby-plugins], [enable ruby plugins])])
|
||||||
AC_ARG_WITH([libxml2],
|
AC_ARG_WITH([libxml2],
|
||||||
[AS_HELP_STRING([--with-libxml2], [link with libxml2 instead of expat])])
|
[AS_HELP_STRING([--with-libxml2], [link with libxml2 instead of expat])])
|
||||||
AC_ARG_WITH([xscreensaver],
|
AC_ARG_WITH([xscreensaver],
|
||||||
@ -37,6 +39,7 @@ AC_ARG_WITH([xscreensaver],
|
|||||||
|
|
||||||
### plugins
|
### plugins
|
||||||
# ruby
|
# ruby
|
||||||
|
if test "x$enable_ruby_plugins" != xno; then
|
||||||
AC_CHECK_PROG(RUBY_CMD_EXISTS, ruby, yes, no)
|
AC_CHECK_PROG(RUBY_CMD_EXISTS, ruby, yes, no)
|
||||||
if test "$RUBY_CMD_EXISTS" == "yes"; then
|
if test "$RUBY_CMD_EXISTS" == "yes"; then
|
||||||
ac_mkmf_result=`ruby -rmkmf -e ";" 2>&1`
|
ac_mkmf_result=`ruby -rmkmf -e ";" 2>&1`
|
||||||
@ -47,14 +50,25 @@ if test "$RUBY_CMD_EXISTS" == "yes"; then
|
|||||||
AX_RUBY_DEVEL
|
AX_RUBY_DEVEL
|
||||||
AM_CONDITIONAL([BUILD_RUBY_API], [true])
|
AM_CONDITIONAL([BUILD_RUBY_API], [true])
|
||||||
AC_DEFINE([HAVE_RUBY], [1], [Ruby support])
|
AC_DEFINE([HAVE_RUBY], [1], [Ruby support])
|
||||||
|
else
|
||||||
|
if test "x$enable_ruby_plugins" = xyes; then
|
||||||
|
AC_MSG_ERROR([Ruby not found, cannot enable Ruby plugins.])
|
||||||
else
|
else
|
||||||
AM_CONDITIONAL([BUILD_RUBY_API], [false])
|
AM_CONDITIONAL([BUILD_RUBY_API], [false])
|
||||||
AC_MSG_NOTICE([Ruby development package not found, Ruby plugin support disabled.])
|
AC_MSG_NOTICE([Ruby development package not found, Ruby plugin support disabled.])
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if test "x$enable_ruby_plugins" = xyes; then
|
||||||
|
AC_MSG_ERROR([Ruby not found, cannot enable Ruby plugins.])
|
||||||
else
|
else
|
||||||
AM_CONDITIONAL([BUILD_RUBY_API], [false])
|
AM_CONDITIONAL([BUILD_RUBY_API], [false])
|
||||||
AC_MSG_NOTICE([Ruby not installed, Ruby plugin support disabled.])
|
AC_MSG_NOTICE([Ruby not installed, Ruby plugin support disabled.])
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
AM_CONDITIONAL([BUILD_RUBY_API], [false])
|
||||||
|
fi
|
||||||
|
|
||||||
# python
|
# python
|
||||||
AC_CHECK_PROG(PYTHON_CONFIG_EXISTS, python-config, yes, no)
|
AC_CHECK_PROG(PYTHON_CONFIG_EXISTS, python-config, yes, no)
|
||||||
@ -207,6 +221,7 @@ echo ""
|
|||||||
echo "PACKAGE_STATUS : $PACKAGE_STATUS"
|
echo "PACKAGE_STATUS : $PACKAGE_STATUS"
|
||||||
echo "AM_CFLAGS : $AM_CFLAGS"
|
echo "AM_CFLAGS : $AM_CFLAGS"
|
||||||
echo "AM_CPPFLAGS : $AM_CPPFLAGS"
|
echo "AM_CPPFLAGS : $AM_CPPFLAGS"
|
||||||
|
echo "AM_LDFLAGS : $AM_LDFLAGS"
|
||||||
echo "LIBS : $LIBS"
|
echo "LIBS : $LIBS"
|
||||||
echo "XML Parser : $PARSER"
|
echo "XML Parser : $PARSER"
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user