Commit c5f1126f c5f1126fe5883c0a8a22fb0ad8de18b8cfd6650e by Sergey Poznyakoff

Mark unfinished interfaces as experimental so they're not built by default.

* am/enable.m4 (MU_ENABLE_SUPPORT): Fix the usage of the last argument.
* configure.ac: Check for --enable-experimental before any other checks.
Mark cxx, python and nntp as experimental.
* mh/tests/mhn.at: Make sure all mailboxes are writable.
* mh/tests/testsuite.at (MTSTAILOR): Fix mailer URL.
* po/POTFILES.in: Comment out unused sources.
1 parent 074a1485
...@@ -34,16 +34,15 @@ AC_DEFUN([MU_ENABLE_SUPPORT], [ ...@@ -34,16 +34,15 @@ AC_DEFUN([MU_ENABLE_SUPPORT], [
34 esac], 34 esac],
35 [mu_cache_var=ifelse([$4],,yes,[$4])]) 35 [mu_cache_var=ifelse([$4],,yes,[$4])])
36 36
37 if test x"[$]mu_cache_var" = x"yes"; then 37 if test "[$]mu_cache_var" = "yes"; then
38 ifelse([$2],,:,[$2]) 38 ifelse([$2],,:,[$2])
39 ifelse([$3],,,else 39 ifelse([$3],,,else
40 [$3]) 40 [$3])
41 fi 41 fi
42 if test x"[$]mu_cache_var" = x"yes"; then 42 if test "[$]mu_cache_var" = "yes"; then
43 AC_DEFINE([ENABLE_]mu_upcase,1,[Define this if you enable $1 support]) 43 AC_DEFINE([ENABLE_]mu_upcase,1,[Define this if you enable $1 support])
44 fi 44 fi
45 AM_CONDITIONAL(mu_cond, 45 AM_CONDITIONAL(mu_cond, [test "[$]mu_cache_var" = "yes"])
46 [test x"[$]mu_cache_var" = x"yes" ifelse($4,,,[&& $4])])
47 popdef([mu_cond]) 46 popdef([mu_cond])
48 popdef([mu_cache_var]) 47 popdef([mu_cache_var])
49 popdef([mu_upcase]) 48 popdef([mu_upcase])
...@@ -67,16 +66,16 @@ AC_DEFUN([MU_ENABLE_BUILD], [ ...@@ -67,16 +66,16 @@ AC_DEFUN([MU_ENABLE_BUILD], [
67 esac], 66 esac],
68 [mu_cache_var=ifelse([$5],,yes,[$5])]) 67 [mu_cache_var=ifelse([$5],,yes,[$5])])
69 68
70 if test x"[$]mu_cache_var" = x"yes"; then 69 if test "[$]mu_cache_var" = "yes"; then
71 ifelse([$2],,:,[$2]) 70 ifelse([$2],,:,[$2])
72 ifelse([$3],,,else 71 ifelse([$3],,,else
73 [$3]) 72 [$3])
74 fi 73 fi
75 if test x"[$]mu_cache_var" = x"yes" ifelse($4,,,[&& $4]); then 74 if test "[$]mu_cache_var" = "yes"; then
76 AC_DEFINE([MU_BUILD_]mu_upcase,1,[Define this if you build $1]) 75 AC_DEFINE([MU_BUILD_]mu_upcase,1,[Define this if you build $1])
77 fi 76 fi
78 AM_CONDITIONAL(mu_cond, 77 AM_CONDITIONAL(mu_cond,
79 [test x"[$]mu_cache_var" = x"yes" ifelse($4,,,[&& $4])]) 78 [test "[$]mu_cache_var" = "yes"])
80 79
81 popdef([mu_upcase]) 80 popdef([mu_upcase])
82 popdef([mu_cache_var]) 81 popdef([mu_cache_var])
......
...@@ -162,6 +162,13 @@ fi ...@@ -162,6 +162,13 @@ fi
162 162
163 MU_DEBUG_MODE 163 MU_DEBUG_MODE
164 164
165 # For adventurous characters: enable experimental/unfinished/buggy stuff
166 AC_ARG_ENABLE([experimental],
167 AC_HELP_STRING([--enable-experimental],
168 [build experimental and/or unfinished utilities]),
169 [mu_build_experimental="${enableval}"],
170 [mu_build_experimental=no])
171
165 # Initialize authlibs 172 # Initialize authlibs
166 173
167 AC_SUBST(MU_AUTHLIBS) 174 AC_SUBST(MU_AUTHLIBS)
...@@ -802,7 +809,8 @@ MU_ENABLE_SUPPORT([imap], ...@@ -802,7 +809,8 @@ MU_ENABLE_SUPPORT([imap],
802 MU_ENABLE_SUPPORT([pop], 809 MU_ENABLE_SUPPORT([pop],
803 [MU_LIB_POP='${top_builddir}/libproto/pop/libmu_pop.la']) 810 [MU_LIB_POP='${top_builddir}/libproto/pop/libmu_pop.la'])
804 MU_ENABLE_SUPPORT([nntp], 811 MU_ENABLE_SUPPORT([nntp],
805 [MU_LIB_NNTP='${top_builddir}/libproto/nntp/libmu_nntp.la']) 812 [MU_LIB_NNTP='${top_builddir}/libproto/nntp/libmu_nntp.la'],[],
813 [$mu_build_experimental])
806 MU_ENABLE_SUPPORT([mh], 814 MU_ENABLE_SUPPORT([mh],
807 [MU_LIB_MH='${top_builddir}/libproto/mh/libmu_mh.la']) 815 [MU_LIB_MH='${top_builddir}/libproto/mh/libmu_mh.la'])
808 MU_ENABLE_SUPPORT([maildir], 816 MU_ENABLE_SUPPORT([maildir],
...@@ -826,12 +834,6 @@ MU_ENABLE_SUPPORT(radius, ...@@ -826,12 +834,6 @@ MU_ENABLE_SUPPORT(radius,
826 mu_cv_enable_radius=yes], 834 mu_cv_enable_radius=yes],
827 [mu_cv_enable_radius=no])]) 835 [mu_cv_enable_radius=no])])
828 836
829 AC_ARG_ENABLE([experimental],
830 AC_HELP_STRING([--enable-experimental],
831 [build experimental and/or unfinished utilities]),
832 [mu_build_experimental="${enableval}"],
833 [mu_build_experimental=no])
834
835 if test x"$testpam" = x"yes"; then 837 if test x"$testpam" = x"yes"; then
836 AC_CHECK_HEADERS(security/pam_appl.h) 838 AC_CHECK_HEADERS(security/pam_appl.h)
837 if test x"$ac_cv_header_security_pam_appl_h" = x"yes"; then 839 if test x"$ac_cv_header_security_pam_appl_h" = x"yes"; then
...@@ -1097,7 +1099,7 @@ case "${enableval}" in ...@@ -1097,7 +1099,7 @@ case "${enableval}" in
1097 yes) status_python=yes ;; 1099 yes) status_python=yes ;;
1098 no) status_python=no ;; 1100 no) status_python=no ;;
1099 *) AC_MSG_ERROR(bad value ${enableval} for --enable-python) ;; 1101 *) AC_MSG_ERROR(bad value ${enableval} for --enable-python) ;;
1100 esac],[status_python=yes]) 1102 esac],[status_python=$mu_build_experimental])
1101 1103
1102 AC_SUBST(PYTHON_LIBS) 1104 AC_SUBST(PYTHON_LIBS)
1103 AC_SUBST(PYTHON_INCLUDES) 1105 AC_SUBST(PYTHON_INCLUDES)
...@@ -1137,7 +1139,9 @@ AM_CONDITIONAL([MU_COND_PYTHON], [test "$status_python" = yes]) ...@@ -1137,7 +1139,9 @@ AM_CONDITIONAL([MU_COND_PYTHON], [test "$status_python" = yes])
1137 AC_SUBST(MU_CXX_EXAMPLES_BUILD) 1139 AC_SUBST(MU_CXX_EXAMPLES_BUILD)
1138 MU_ENABLE_SUPPORT(cxx, 1140 MU_ENABLE_SUPPORT(cxx,
1139 [MU_CXX_EXAMPLES_BUILD='$(MU_CXX_EXAMPLES_LIST)' 1141 [MU_CXX_EXAMPLES_BUILD='$(MU_CXX_EXAMPLES_LIST)'
1140 MU_LIB_CPP='${top_builddir}/libmu_cpp/libmu_cpp.la']) 1142 MU_LIB_CPP='${top_builddir}/libmu_cpp/libmu_cpp.la'],
1143 [],
1144 [$mu_build_experimental])
1141 1145
1142 # Default mailbox record 1146 # Default mailbox record
1143 # Note: 1. Support for mbox type is always enabled. 1147 # Note: 1. Support for mbox type is always enabled.
...@@ -1181,14 +1185,18 @@ MU_ENABLE_BUILD(comsat) ...@@ -1181,14 +1185,18 @@ MU_ENABLE_BUILD(comsat)
1181 MU_ENABLE_BUILD(maidag) 1185 MU_ENABLE_BUILD(maidag)
1182 MU_ENABLE_BUILD(mail) 1186 MU_ENABLE_BUILD(mail)
1183 MU_ENABLE_BUILD(sieve) 1187 MU_ENABLE_BUILD(sieve)
1184 MU_ENABLE_BUILD(guimb,,,[test "$useguile" = yes]) 1188 if test "$useguile" = "yes"; then
1189 MU_ENABLE_BUILD(guimb,,,[$useguile])
1190 fi
1185 MU_ENABLE_BUILD(messages) 1191 MU_ENABLE_BUILD(messages)
1186 MU_ENABLE_BUILD(readmsg) 1192 MU_ENABLE_BUILD(readmsg)
1187 MU_ENABLE_BUILD(dotlock) 1193 MU_ENABLE_BUILD(dotlock)
1188 MU_ENABLE_BUILD(movemail) 1194 MU_ENABLE_BUILD(movemail)
1189 MU_ENABLE_BUILD(mimeview) 1195 MU_ENABLE_BUILD(mimeview)
1190 1196
1191 MU_ENABLE_BUILD(mh,,,[test "$mu_cv_enable_mh" = yes]) 1197 if test "$mu_cv_enable_mh" = yes; then
1198 MU_ENABLE_BUILD(mh)
1199 fi
1192 1200
1193 AC_SUBST(MH_BIN_DIR) 1201 AC_SUBST(MH_BIN_DIR)
1194 1202
......
...@@ -171,6 +171,7 @@ Allow me to sell you a couple?' ...@@ -171,6 +171,7 @@ Allow me to sell you a couple?'
171 MH_CHECK([mhn-storage],[mhn06 mhn-store-auto],[ 171 MH_CHECK([mhn-storage],[mhn06 mhn-store-auto],[
172 mkdir Mail/inbox 172 mkdir Mail/inbox
173 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox 173 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
174 chmod +w Mail/inbox/4
174 175
175 mkdir out 176 mkdir out
176 echo "mhn-storage: $curdir/out" >> $MH 177 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 ...@@ -187,6 +188,8 @@ storing message 4 part 2.2.2 as file out/4.2.2.2.octet-stream
187 MH_CHECK([mhn-store-: all escapes],[mhn07 mhn-store_escapes],[ 188 MH_CHECK([mhn-store-: all escapes],[mhn07 mhn-store_escapes],[
188 mkdir Mail/inbox 189 mkdir Mail/inbox
189 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox 190 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
191 chmod +w Mail/inbox/4
192
190 echo "mhn-store-application: %%-%m%P.%s-%p" >> $MH 193 echo "mhn-store-application: %%-%m%P.%s-%p" >> $MH
191 mhn +inbox -store 4 | remove_curdir || exit $? 194 mhn +inbox -store 4 | remove_curdir || exit $?
192 find . -name '%*' 195 find . -name '%*'
...@@ -205,6 +208,8 @@ MH_CHECK([mhn-store-: absolute path],[mhn08 mhn-store_abspath],[ ...@@ -205,6 +208,8 @@ MH_CHECK([mhn-store-: absolute path],[mhn08 mhn-store_abspath],[
205 mkdir Mail/inbox 208 mkdir Mail/inbox
206 mkdir out 209 mkdir out
207 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox 210 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
211 chmod +w Mail/inbox/4
212
208 echo "mhn-store-application: $curdir/out/%m%P.%s" >> $MH 213 echo "mhn-store-application: $curdir/out/%m%P.%s" >> $MH
209 mhn +inbox -store 4 | remove_curdir || exit $? 214 mhn +inbox -store 4 | remove_curdir || exit $?
210 ], 215 ],
...@@ -219,6 +224,8 @@ MH_CHECK([mhn-store-: +folder],[mhn09 mhn-store+folder],[ ...@@ -219,6 +224,8 @@ MH_CHECK([mhn-store-: +folder],[mhn09 mhn-store+folder],[
219 mkdir Mail/inbox 224 mkdir Mail/inbox
220 mkdir Mail/app 225 mkdir Mail/app
221 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox 226 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
227 chmod +w Mail/inbox/4
228
222 echo "mhn-store-application: +app" >> $MH 229 echo "mhn-store-application: +app" >> $MH
223 mhn +inbox -store 4 | remove_curdir || exit $? 230 mhn +inbox -store 4 | remove_curdir || exit $?
224 ], 231 ],
...@@ -232,6 +239,8 @@ storing message 4 part 2.2.2 to folder +app as message 3 ...@@ -232,6 +239,8 @@ storing message 4 part 2.2.2 to folder +app as message 3
232 MH_CHECK([mhn-store-: +],[mhn10 mhn-store+],[ 239 MH_CHECK([mhn-store-: +],[mhn10 mhn-store+],[
233 mkdir Mail/inbox 240 mkdir Mail/inbox
234 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox 241 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
242 chmod +w Mail/inbox/4
243
235 echo "Current-Folder: inbox" > Mail/context 244 echo "Current-Folder: inbox" > Mail/context
236 cat >> $MH <<EOT 245 cat >> $MH <<EOT
237 mhn-store-application/octet-stream: + 246 mhn-store-application/octet-stream: +
...@@ -245,6 +254,8 @@ mhn +inbox -store -part 2.2.1 4 | remove_curdir || exit $? ...@@ -245,6 +254,8 @@ mhn +inbox -store -part 2.2.1 4 | remove_curdir || exit $?
245 MH_CHECK([mhn-store-: pipe],[mhn11 mhn-store-pipe],[ 254 MH_CHECK([mhn-store-: pipe],[mhn11 mhn-store-pipe],[
246 mkdir Mail/inbox 255 mkdir Mail/inbox
247 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox 256 cp $abs_top_srcdir/testsuite/mh/mbox1/4 Mail/inbox
257 chmod +w Mail/inbox/4
258
248 echo "Current-Folder: inbox" > Mail/context 259 echo "Current-Folder: inbox" > Mail/context
249 echo "mhn-store-text: | $abs_top_srcdir/mh/tests/mhed -" >> $MH 260 echo "mhn-store-text: | $abs_top_srcdir/mh/tests/mhed -" >> $MH
250 mhn +inbox -store -part 1 4 | sed "s|$abs_top_srcdir/mh/tests/||;s|(cd \(.*\)\;|(cd home\;|;s| *$||" || exit $? 261 mhn +inbox -store -part 1 4 | sed "s|$abs_top_srcdir/mh/tests/||;s|(cd \(.*\)\;|(cd home\;|;s| *$||" || exit $?
......
...@@ -35,7 +35,7 @@ cat > $MTSTAILOR <<EOT ...@@ -35,7 +35,7 @@ cat > $MTSTAILOR <<EOT
35 localname: darkstar 35 localname: darkstar
36 localdomain: example.net 36 localdomain: example.net
37 username: mhtester 37 username: mhtester
38 url: sendmail://$abs_top_srcdir/examples/mta 38 url: sendmail://$abs_top_builddir/examples/mta
39 EOT 39 EOT
40 40
41 MTA_DIAG=$curdir/mta.diag 41 MTA_DIAG=$curdir/mta.diag
......
...@@ -80,7 +80,7 @@ libmu_sieve/extensions/spamd.c ...@@ -80,7 +80,7 @@ libmu_sieve/extensions/spamd.c
80 libmu_sieve/extensions/timestamp.c 80 libmu_sieve/extensions/timestamp.c
81 libmu_sieve/extensions/vacation.c 81 libmu_sieve/extensions/vacation.c
82 82
83 libproto/imap/folder.c 83 # libproto/imap/folder.c
84 libproto/mbox/mbox.c 84 libproto/mbox/mbox.c
85 85
86 maidag/maidag.c 86 maidag/maidag.c
......