Commit 6ffef584 6ffef584f46e175b1ae29a1b152316dacc8a08fd by Sergey Poznyakoff

Further improvements of the configure system.

* Makefile.am (MU_COND_LIBMU_CPP): New cond.
(SUBDIRS): Use LIBMU_CPP_DIR
* configure.ac: Rename --disable-c++ to --disable-cxx: autoconf
cannot handle the former.
(MU_COND_LIBMU_CPP): New cond.
(AC_CONFIG_FILES): Add include/mailutils/cpp/Makefile
* include/mailutils/Makefile.am (nobase_pkginclude_HEADERS): Remove
(MU_COND_LIBMU_CPP): New cond.
(SUBDIRS): Add CPP_DIR
* include/mailutils/cpp/Makefile.am: Remove substitution vars.
(cppincludedir, cppinclude_HEADERS): New variables.
* include/mailutils/sys/Makefile.am (sysincludedir)
(sysinclude_HEADERS): New variables.
1 parent 73fe9290
...@@ -84,6 +84,10 @@ if MU_COND_LIBMU_SCM ...@@ -84,6 +84,10 @@ if MU_COND_LIBMU_SCM
84 LIBMU_SCM_DIR = libmu_scm 84 LIBMU_SCM_DIR = libmu_scm
85 endif 85 endif
86 86
87 if MU_COND_LIBMU_CPP
88 LIBMU_CPP_DIR = libmu_cpp
89 endif
90
87 SUBDIRS = \ 91 SUBDIRS = \
88 mu-aux\ 92 mu-aux\
89 include\ 93 include\
...@@ -96,7 +100,7 @@ SUBDIRS = \ ...@@ -96,7 +100,7 @@ SUBDIRS = \
96 lib\ 100 lib\
97 libmu_argp\ 101 libmu_argp\
98 libmu_cfg\ 102 libmu_cfg\
99 libmu_cpp\ 103 $(LIBMU_CPP_DIR)\
100 $(LIBMU_SCM_DIR)\ 104 $(LIBMU_SCM_DIR)\
101 libmu_sieve\ 105 libmu_sieve\
102 $(PYTHON_DIR)\ 106 $(PYTHON_DIR)\
......
...@@ -1141,10 +1141,10 @@ if test "$status_python" = yes; then ...@@ -1141,10 +1141,10 @@ if test "$status_python" = yes; then
1141 fi 1141 fi
1142 AM_CONDITIONAL([MU_COND_PYTHON], [test "$status_python" = yes]) 1142 AM_CONDITIONAL([MU_COND_PYTHON], [test "$status_python" = yes])
1143 1143
1144 AC_SUBST(MU_CXX_LTLIBRARIES_BUILD)
1145 AC_SUBST(MU_CXX_EXAMPLES_BUILD) 1144 AC_SUBST(MU_CXX_EXAMPLES_BUILD)
1146 MU_ENABLE_SUPPORT(c++, 1145 MU_ENABLE_SUPPORT(cxx,
1147 [MU_CXX_EXAMPLES_BUILD='$(MU_CXX_EXAMPLES_LIST)']) 1146 [MU_CXX_EXAMPLES_BUILD='$(MU_CXX_EXAMPLES_LIST)'])
1147 AM_CONDITIONAL([MU_COND_LIBMU_CPP], [test "$mu_cv_enable_cxx" = yes])
1148 1148
1149 # Default mailbox record 1149 # Default mailbox record
1150 # Note: 1. Support for mbox type is always enabled. 1150 # Note: 1. Support for mbox type is always enabled.
...@@ -1332,6 +1332,7 @@ AC_CONFIG_FILES([ ...@@ -1332,6 +1332,7 @@ AC_CONFIG_FILES([
1332 include/Makefile 1332 include/Makefile
1333 include/mailutils/Makefile 1333 include/mailutils/Makefile
1334 include/mailutils/sys/Makefile 1334 include/mailutils/sys/Makefile
1335 include/mailutils/cpp/Makefile
1335 lib/Makefile 1336 lib/Makefile
1336 libmu_argp/Makefile 1337 libmu_argp/Makefile
1337 libmu_auth/Makefile 1338 libmu_auth/Makefile
......
...@@ -98,8 +98,9 @@ pkginclude_HEADERS = \ ...@@ -98,8 +98,9 @@ pkginclude_HEADERS = \
98 vartab.h\ 98 vartab.h\
99 version.h 99 version.h
100 100
101 nobase_pkginclude_HEADERS = \ 101 if MU_COND_LIBMU_CPP
102 sys/nntp.h\ 102 CPP_DIR = cpp
103 sys/pop3.h 103 endif
104 SUBDIRS = sys 104
105 SUBDIRS = sys $(CPP_DIR)
105 106
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
16 ## along with GNU Mailutils; if not, write to the Free Software 16 ## along with GNU Mailutils; if not, write to the Free Software
17 ## Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 ## Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18
19 MU_CXX_INCLUDES = \ 19 cppincludedir=$(pkgincludedir)/cpp
20 cppinclude_HEADERS = \
20 address.h\ 21 address.h\
21 attribute.h\ 22 attribute.h\
22 body.h\ 23 body.h\
...@@ -41,6 +42,3 @@ MU_CXX_INCLUDES = \ ...@@ -41,6 +42,3 @@ MU_CXX_INCLUDES = \
41 sieve.h\ 42 sieve.h\
42 stream.h\ 43 stream.h\
43 url.h 44 url.h
44
45 pkginclude_HEADERS = @MU_CXX_INCLUDES@
46 EXTRA_HEADERS = '$(MU_CXX_INCLUDES)'
......
...@@ -17,3 +17,7 @@ ...@@ -17,3 +17,7 @@
17 ## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 17 ## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
18 ## 02110-1301 USA 18 ## 02110-1301 USA
19 19
20 sysincludedir=$(pkgincludedir)/sys
21 sysinclude_HEADERS = \
22 nntp.h\
23 pop3.h
......