Commit 88df51f0 88df51f00f0ec194e86b8fefe92ef91cfa009009 by Sergey Poznyakoff

Use MU_ENABLE_SUPPORT for virtual-domains.

1 parent 28e65c57
...@@ -349,24 +349,17 @@ if test x"$use_mysql" = x"yes"; then ...@@ -349,24 +349,17 @@ if test x"$use_mysql" = x"yes"; then
349 AC_DEFINE(HAVE_MYSQL,1,[Define this if you have mysql libraries])]) 349 AC_DEFINE(HAVE_MYSQL,1,[Define this if you have mysql libraries])])
350 fi 350 fi
351 351
352 dnl Virtual domain support, at least for pop3d 352 dnl Virtual domain support
353 AC_ARG_ENABLE([virtual-domains], 353 MU_ENABLE_SUPPORT(virtual-domains)
354 AC_HELP_STRING([--enable-virtual-domains], 354 AC_SUBST(SITE_VIRTUAL_PWDDIR)
355 [enable virtual domain support (default no)]), 355 AC_ARG_WITH([virtual-pwddir],
356 [use_virtual_domains="yes"],,)
357 if test x"$use_virtual_domains" = x"yes"; then
358 AC_DEFINE(USE_VIRTUAL_DOMAINS,1,[Enable use of virtual domains])
359 AC_SUBST(SITE_VIRTUAL_PWDDIR)
360 AC_ARG_WITH([virtual-pwddir],
361 AC_HELP_STRING([--with-virtual-pwddir=DIR], 356 AC_HELP_STRING([--with-virtual-pwddir=DIR],
362 [use DIR instead of $sysconfdir/domain]), 357 [use DIR instead of $sysconfdir/domain]),[
363 [ 358 case "${withval}" in
364 case "${withval}" in
365 /*) SITE_VIRTUAL_PWDDIR="${withval}";; 359 /*) SITE_VIRTUAL_PWDDIR="${withval}";;
366 *) SITE_VIRTUAL_PWDDIR="\$(sysconfdir)/${withval}";; 360 *) SITE_VIRTUAL_PWDDIR="\$(sysconfdir)/${withval}";;
367 esac], 361 esac],
368 [SITE_VIRTUAL_PWDDIR="\$(sysconfdir)/domain"]) 362 [SITE_VIRTUAL_PWDDIR="\$(sysconfdir)/domain"])
369 fi
370 363
371 MU_ENABLE_SUPPORT(imap) 364 MU_ENABLE_SUPPORT(imap)
372 MU_ENABLE_SUPPORT(pop) 365 MU_ENABLE_SUPPORT(pop)
...@@ -599,6 +592,7 @@ AC_CONFIG_FILES([Makefile mailutils.spec ...@@ -599,6 +592,7 @@ AC_CONFIG_FILES([Makefile mailutils.spec
599 readmsg/testsuite/Makefile 592 readmsg/testsuite/Makefile
600 comsat/Makefile 593 comsat/Makefile
601 mail.local/Makefile 594 mail.local/Makefile
595 mail.local/testsuite/Makefile
602 mail.remote/Makefile 596 mail.remote/Makefile
603 mail.remote/testsuite/Makefile 597 mail.remote/testsuite/Makefile
604 dotlock/Makefile 598 dotlock/Makefile
......