-AS_IF([test x$enable_server = xyes],
- [AC_DEFINE(HAVE_SERVER_SUPPORT, 1, [support server])])
+AS_IF([test x$enable_server = xyes], [
+ AC_DEFINE(HAVE_SERVER_SUPPORT, 1, [support server])
+ AC_SUBST(ENABLE_SERVER, yes)
+], [
+ AC_SUBST(ENABLE_SERVER, no)
+])