summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--am/enable.m413
-rw-r--r--configure.ac30
-rw-r--r--mh/tests/mhn.at11
-rw-r--r--mh/tests/testsuite.at2
-rw-r--r--po/POTFILES.in2
5 files changed, 38 insertions, 20 deletions
diff --git a/am/enable.m4 b/am/enable.m4
index 059681276..80ea96e21 100644
--- a/am/enable.m4
+++ b/am/enable.m4
@@ -34,16 +34,15 @@ AC_DEFUN([MU_ENABLE_SUPPORT], [
esac],
[mu_cache_var=ifelse([$4],,yes,[$4])])
- if test x"[$]mu_cache_var" = x"yes"; then
+ if test "[$]mu_cache_var" = "yes"; then
ifelse([$2],,:,[$2])
ifelse([$3],,,else
[$3])
fi
- if test x"[$]mu_cache_var" = x"yes"; then
+ if test "[$]mu_cache_var" = "yes"; then
AC_DEFINE([ENABLE_]mu_upcase,1,[Define this if you enable $1 support])
fi
- AM_CONDITIONAL(mu_cond,
- [test x"[$]mu_cache_var" = x"yes" ifelse($4,,,[&& $4])])
+ AM_CONDITIONAL(mu_cond, [test "[$]mu_cache_var" = "yes"])
popdef([mu_cond])
popdef([mu_cache_var])
popdef([mu_upcase])
@@ -67,16 +66,16 @@ AC_DEFUN([MU_ENABLE_BUILD], [
esac],
[mu_cache_var=ifelse([$5],,yes,[$5])])
- if test x"[$]mu_cache_var" = x"yes"; then
+ if test "[$]mu_cache_var" = "yes"; then
ifelse([$2],,:,[$2])
ifelse([$3],,,else
[$3])
fi
- if test x"[$]mu_cache_var" = x"yes" ifelse($4,,,[&& $4]); then
+ if test "[$]mu_cache_var" = "yes"; then
AC_DEFINE([MU_BUILD_]mu_upcase,1,[Define this if you build $1])
fi
AM_CONDITIONAL(mu_cond,
- [test x"[$]mu_cache_var" = x"yes" ifelse($4,,,[&& $4])])
+ [test "[$]mu_cache_var" = "yes"])
popdef([mu_upcase])
popdef([mu_cache_var])
diff --git a/configure.ac b/configure.ac
index 447701f5f..7924fc4d7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,6 +162,13 @@ fi
MU_DEBUG_MODE
+# For adventurous characters: enable experimental/unfinished/buggy stuff
+AC_ARG_ENABLE([experimental],
+ AC_HELP_STRING([--enable-experimental],
+ [build experimental and/or unfinished utilities]),
+ [mu_build_experimental="${enableval}"],
+ [mu_build_experimental=no])
+
# Initialize authlibs
AC_SUBST(MU_AUTHLIBS)
@@ -802,7 +809,8 @@ MU_ENABLE_SUPPORT([imap],
MU_ENABLE_SUPPORT([pop],
[MU_LIB_POP='${top_builddir}/libproto/pop/libmu_pop.la'])
MU_ENABLE_SUPPORT([nntp],
- [MU_LIB_NNTP='${top_builddir}/libproto/nntp/libmu_nntp.la'])
+ [MU_LIB_NNTP='${top_builddir}/libproto/nntp/libmu_nntp.la'],[],
+ [$mu_build_experimental])
MU_ENABLE_SUPPORT([mh],
[MU_LIB_MH='${top_builddir}/libproto/mh/libmu_mh.la'])
MU_ENABLE_SUPPORT([maildir],
@@ -826,12 +834,6 @@ MU_ENABLE_SUPPORT(radius,
mu_cv_enable_radius=yes],
[mu_cv_enable_radius=no])])
-AC_ARG_ENABLE([experimental],
- AC_HELP_STRING([--enable-experimental],
- [build experimental and/or unfinished utilities]),
- [mu_build_experimental="${enableval}"],
- [mu_build_experimental=no])
-
if test x"$testpam" = x"yes"; then
AC_CHECK_HEADERS(security/pam_appl.h)
if test x"$ac_cv_header_security_pam_appl_h" = x"yes"; then
@@ -1097,7 +1099,7 @@ case "${enableval}" in
yes) status_python=yes ;;
no) status_python=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-python) ;;
-esac],[status_python=yes])
+esac],[status_python=$mu_build_experimental])
AC_SUBST(PYTHON_LIBS)
AC_SUBST(PYTHON_INCLUDES)
@@ -1137,7 +1139,9 @@ AM_CONDITIONAL([MU_COND_PYTHON], [test "$status_python" = yes])
AC_SUBST(MU_CXX_EXAMPLES_BUILD)
MU_ENABLE_SUPPORT(cxx,
[MU_CXX_EXAMPLES_BUILD='$(MU_CXX_EXAMPLES_LIST)'
- MU_LIB_CPP='${top_builddir}/libmu_cpp/libmu_cpp.la'])
+ MU_LIB_CPP='${top_builddir}/libmu_cpp/libmu_cpp.la'],
+ [],
+ [$mu_build_experimental])
# Default mailbox record
# Note: 1. Support for mbox type is always enabled.
@@ -1181,14 +1185,18 @@ MU_ENABLE_BUILD(comsat)
MU_ENABLE_BUILD(maidag)
MU_ENABLE_BUILD(mail)
MU_ENABLE_BUILD(sieve)
-MU_ENABLE_BUILD(guimb,,,[test "$useguile" = yes])
+if test "$useguile" = "yes"; then
+ MU_ENABLE_BUILD(guimb,,,[$useguile])
+fi
MU_ENABLE_BUILD(messages)
MU_ENABLE_BUILD(readmsg)
MU_ENABLE_BUILD(dotlock)
MU_ENABLE_BUILD(movemail)
MU_ENABLE_BUILD(mimeview)
-MU_ENABLE_BUILD(mh,,,[test "$mu_cv_enable_mh" = yes])
+if test "$mu_cv_enable_mh" = yes; then
+ MU_ENABLE_BUILD(mh)
+fi
AC_SUBST(MH_BIN_DIR)
diff --git a/mh/tests/mhn.at b/mh/tests/mhn.at
index 8e78ebe57..e47afb932 100644
--- a/mh/tests/mhn.at
+++ b/mh/tests/mhn.at
@@ -171,6 +171,7 @@ Allow me to sell you a couple?'
MH_CHECK([mhn-storage],[mhn06 mhn-store-auto],[
mkdir Mail/inbox
cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
+chmod +w Mail/inbox/4
mkdir out
echo "mhn-storage: $curdir/out" >> $MH
@@ -187,6 +188,8 @@ storing message 4 part 2.2.2 as file out/4.2.2.2.octet-stream
MH_CHECK([mhn-store-: all escapes],[mhn07 mhn-store_escapes],[
mkdir Mail/inbox
cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
+chmod +w Mail/inbox/4
+
echo "mhn-store-application: %%-%m%P.%s-%p" >> $MH
mhn +inbox -store 4 | remove_curdir || exit $?
find . -name '%*'
@@ -205,6 +208,8 @@ MH_CHECK([mhn-store-: absolute path],[mhn08 mhn-store_abspath],[
mkdir Mail/inbox
mkdir out
cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
+chmod +w Mail/inbox/4
+
echo "mhn-store-application: $curdir/out/%m%P.%s" >> $MH
mhn +inbox -store 4 | remove_curdir || exit $?
],
@@ -219,6 +224,8 @@ MH_CHECK([mhn-store-: +folder],[mhn09 mhn-store+folder],[
mkdir Mail/inbox
mkdir Mail/app
cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
+chmod +w Mail/inbox/4
+
echo "mhn-store-application: +app" >> $MH
mhn +inbox -store 4 | remove_curdir || exit $?
],
@@ -232,6 +239,8 @@ storing message 4 part 2.2.2 to folder +app as message 3
MH_CHECK([mhn-store-: +],[mhn10 mhn-store+],[
mkdir Mail/inbox
cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
+chmod +w Mail/inbox/4
+
echo "Current-Folder: inbox" > Mail/context
cat >> $MH <<EOT
mhn-store-application/octet-stream: +
@@ -245,6 +254,8 @@ mhn +inbox -store -part 2.2.1 4 | remove_curdir || exit $?
MH_CHECK([mhn-store-: pipe],[mhn11 mhn-store-pipe],[
mkdir Mail/inbox
cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
+chmod +w Mail/inbox/4
+
echo "Current-Folder: inbox" > Mail/context
echo "mhn-store-text: | $abs_top_srcdir/mh/tests/mhed -" >> $MH
mhn +inbox -store -part 1 4 | sed "s|$abs_top_srcdir/mh/tests/||;s|(cd \(.*\)\;|(cd home\;|;s| *$||" || exit $?
diff --git a/mh/tests/testsuite.at b/mh/tests/testsuite.at
index 43487b819..e654a9c04 100644
--- a/mh/tests/testsuite.at
+++ b/mh/tests/testsuite.at
@@ -35,7 +35,7 @@ cat > $MTSTAILOR <<EOT
localname: darkstar
localdomain: example.net
username: mhtester
-url: sendmail://$abs_top_srcdir/examples/mta
+url: sendmail://$abs_top_builddir/examples/mta
EOT
MTA_DIAG=$curdir/mta.diag
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ddb2b8ad1..90d5cd97d 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -80,7 +80,7 @@ libmu_sieve/extensions/spamd.c
libmu_sieve/extensions/timestamp.c
libmu_sieve/extensions/vacation.c
-libproto/imap/folder.c
+# libproto/imap/folder.c
libproto/mbox/mbox.c
maidag/maidag.c

Return to:

Send suggestions and report system problems to the System administrator.