Skip to content
Snippets Groups Projects
Commit eb8bdf52 authored by Karl Fleischmann's avatar Karl Fleischmann
Browse files

configure: Use TEST_WITH macro from dovecot/core

Drop the inline definition of the TEST_WITH macro in favor of using a
verbatim copy of the file that contains the macro from the dovecot/core
project. This allows easier tracking of changes to the macro that happen
upstream.
parent 7e31dbf0
No related branches found
No related tags found
No related merge requests found
......@@ -77,28 +77,6 @@ if test "$want_unfinished_features" = "yes"; then
[Define to build unfinished features/extensions.])
fi
#
#
dnl TEST_WITH(name, value, [plugin])
AC_DEFUN([TEST_WITH], [
want=want_`echo $1|sed s/-/_/g`
if test $2 = yes || test $2 = no || test $2 = auto; then
eval $want=$2
elif test $2 = plugin; then
if test "$3" = plugin; then
eval $want=plugin
else
AC_MSG_ERROR([--with-$1=plugin not supported])
fi
elif `echo $2|grep '^/' >/dev/null`; then
AC_MSG_ERROR([--with-$1=path not supported. You may want to use instead:
CPPFLAGS=-I$2/include LDFLAGS=-L$2/lib ./configure --with-$1])
else
AC_MSG_ERROR([--with-$1: Unknown value: $2])
fi
])
AC_ARG_WITH(docs,
[ --with-docs Install documentation (default)],
if test x$withval = xno; then
......
dnl TEST_WITH(name, value, [plugin])
AC_DEFUN([TEST_WITH], [
want=want_`echo $1|sed s/-/_/g`
AS_IF([test "$2" = yes || test "$2" = no || test "$2" = auto], [
eval $want=$2
], [test "$2" = plugin], [
AS_IF([test "$3" = "plugin"], [
eval $want=plugin
], [
AC_MSG_ERROR(--with-$1=plugin not supported)
])
], [test "$(echo $2|grep -c '^/' 2>/dev/null)" -gt 0], [
AC_MSG_ERROR(--with-$1=path not supported. You may want to use instead:
CPPFLAGS=-I$2/include LDFLAGS=-L$2/lib ./configure --with-$1)
], [
AC_MSG_ERROR(--with-$1: Unknown value: $2)
])
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.