Move gnulib into a subdir.
* bootstrap.conf: Create and populate lib/gnu, if necessary. * configure.ac (MU_APP_COMMON_INCLUDES): Update. (AC_CONFIG_FILES): Build lib/gnu/Makefile * lib/Makefile.am (libmuaux_a_SOURCES): Add all objects from gnu/ * po/POTFILES.in: Update. * examples/.gitignore: Update.
Showing
6 changed files
with
30 additions
and
16 deletions
... | @@ -15,7 +15,19 @@ | ... | @@ -15,7 +15,19 @@ |
15 | # You should have received a copy of the GNU General Public License | 15 | # You should have received a copy of the GNU General Public License |
16 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | 16 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | gnulib_name=libmuaux | 18 | test -d lib/gnu || mkdir lib/gnu |
19 | test -f lib/gnu/Makefile.am || cat > lib/gnu/Makefile.am <<EOT | ||
20 | # THIS FILE IS GENERATED AUTOMATICALLY. PLEASE DO NOT EDIT. | ||
21 | include gnulib.mk | ||
22 | AM_CPPFLAGS += @MU_LIB_COMMON_INCLUDES@ -I${top_srcdir}/lib/gnu -I${top_builddir}/lib/gnu | ||
23 | # Local Variables: | ||
24 | # buffer-read-only: t | ||
25 | # End: | ||
26 | # vi: set ro: | ||
27 | EOT | ||
28 | |||
29 | gnulib_name=libgnu | ||
30 | source_base=lib/gnu | ||
19 | 31 | ||
20 | # We don't need these modules, even though gnulib-tool mistakenly | 32 | # We don't need these modules, even though gnulib-tool mistakenly |
21 | # includes them because of gettext dependencies. | 33 | # includes them because of gettext dependencies. | ... | ... |
... | @@ -69,7 +69,7 @@ AC_SUBST(MU_APP_LIBRARIES,'../libmu_argp/libmu_argp.a ../libmu_cfg/libmu_cfg.la | ... | @@ -69,7 +69,7 @@ AC_SUBST(MU_APP_LIBRARIES,'../libmu_argp/libmu_argp.a ../libmu_cfg/libmu_cfg.la |
69 | 69 | ||
70 | AC_SUBST(MU_LIB_COMMON_INCLUDES,'-I${top_builddir} -I${top_srcdir}/include -I${top_builddir}/include') | 70 | AC_SUBST(MU_LIB_COMMON_INCLUDES,'-I${top_builddir} -I${top_srcdir}/include -I${top_builddir}/include') |
71 | 71 | ||
72 | AC_SUBST(MU_APP_COMMON_INCLUDES,'-I${srcdir} -I${top_srcdir}/include -I${top_srcdir}/lib -I${top_builddir}/lib -I${top_builddir} -I${top_builddir}/include -I${top_srcdir}/libmu_argp -I${top_srcdir}/libmu_cfg') | 72 | AC_SUBST(MU_APP_COMMON_INCLUDES,'-I${srcdir} -I${top_srcdir}/include -I${top_srcdir}/lib -I${top_srcdir}/lib/gnu -I${top_builddir}/lib/gnu -I${top_builddir} -I${top_builddir}/include -I${top_srcdir}/libmu_argp -I${top_srcdir}/libmu_cfg') |
73 | 73 | ||
74 | dnl Check for programs | 74 | dnl Check for programs |
75 | AC_PROG_CC | 75 | AC_PROG_CC |
... | @@ -116,8 +116,8 @@ AC_CHECK_TYPE(iconv_t,:, | ... | @@ -116,8 +116,8 @@ AC_CHECK_TYPE(iconv_t,:, |
116 | # To make these two headers accessible for the libraries, they are linked | 116 | # To make these two headers accessible for the libraries, they are linked |
117 | # to include/. | 117 | # to include/. |
118 | # | 118 | # |
119 | AC_CONFIG_LINKS(include/gettext.h:lib/gettext.h) | 119 | AC_CONFIG_LINKS(include/gettext.h:lib/gnu/gettext.h) |
120 | AC_CONFIG_LINKS(include/intprops.h:lib/intprops.h) | 120 | AC_CONFIG_LINKS(include/intprops.h:lib/gnu/intprops.h) |
121 | 121 | ||
122 | AH_BOTTOM([ | 122 | AH_BOTTOM([ |
123 | #define DEFAULT_TEXT_DOMAIN PACKAGE | 123 | #define DEFAULT_TEXT_DOMAIN PACKAGE |
... | @@ -1462,6 +1462,7 @@ AC_CONFIG_FILES([ | ... | @@ -1462,6 +1462,7 @@ AC_CONFIG_FILES([ |
1462 | include/mailutils/sys/Makefile | 1462 | include/mailutils/sys/Makefile |
1463 | include/mailutils/cpp/Makefile | 1463 | include/mailutils/cpp/Makefile |
1464 | lib/Makefile | 1464 | lib/Makefile |
1465 | lib/gnu/Makefile | ||
1465 | libmu_argp/Makefile | 1466 | libmu_argp/Makefile |
1466 | libmu_auth/Makefile | 1467 | libmu_auth/Makefile |
1467 | libmu_cfg/Makefile | 1468 | libmu_cfg/Makefile | ... | ... |
... | @@ -81,7 +81,7 @@ void mu_debug_log_cont (const char *fmt, ...) MU_PRINTFLIKE(1,2); | ... | @@ -81,7 +81,7 @@ void mu_debug_log_cont (const char *fmt, ...) MU_PRINTFLIKE(1,2); |
81 | void mu_debug_log_end (const char *fmt, ...) MU_PRINTFLIKE(1,2); | 81 | void mu_debug_log_end (const char *fmt, ...) MU_PRINTFLIKE(1,2); |
82 | void mu_debug_log_nl (void); | 82 | void mu_debug_log_nl (void); |
83 | 83 | ||
84 | int mu_debug_get_iterator (mu_iterator_t *piterator, int skipunset); | 84 | int mu_debug_get_iterator (mu_iterator_t *piterator, int skipunset); |
85 | 85 | ||
86 | 86 | ||
87 | #define MU_ASSERT(expr) \ | 87 | #define MU_ASSERT(expr) \ | ... | ... |
... | @@ -15,11 +15,11 @@ | ... | @@ -15,11 +15,11 @@ |
15 | ## You should have received a copy of the GNU General Public License | 15 | ## You should have received a copy of the GNU General Public License |
16 | ## along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | 16 | ## along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | include gnulib.mk | 18 | SUBDIRS = gnu . |
19 | 19 | ||
20 | AM_CPPFLAGS += @MU_LIB_COMMON_INCLUDES@ | 20 | AM_CPPFLAGS = @MU_LIB_COMMON_INCLUDES@ -I${top_srcdir}/lib/gnu -I${top_builddir}/lib/gnu |
21 | 21 | noinst_LIBRARIES = libmuaux.a | |
22 | libmuaux_a_SOURCES += \ | 22 | libmuaux_a_SOURCES = \ |
23 | argp_base.c\ | 23 | argp_base.c\ |
24 | daemon.c\ | 24 | daemon.c\ |
25 | mailcap.c\ | 25 | mailcap.c\ |
... | @@ -29,14 +29,14 @@ libmuaux_a_SOURCES += \ | ... | @@ -29,14 +29,14 @@ libmuaux_a_SOURCES += \ |
29 | tcpwrap.c\ | 29 | tcpwrap.c\ |
30 | mu_umaxtostr.c\ | 30 | mu_umaxtostr.c\ |
31 | mu_umaxtostr.h | 31 | mu_umaxtostr.h |
32 | libmuaux_a_LIBADD=gnu/*.o | ||
33 | #libmuaux_a_LIBADD=`$(AR) t gnu/libgnu.a | sed s.^.gnu/.` | ||
32 | 34 | ||
33 | noinst_HEADERS +=\ | 35 | noinst_HEADERS =\ |
34 | mailcap.h\ | 36 | mailcap.h\ |
35 | muaux.h\ | 37 | muaux.h\ |
36 | tcpwrap.h | 38 | tcpwrap.h |
37 | 39 | ||
38 | EXTRA_DIST += utmp.c | 40 | EXTRA_DIST = utmp.c |
39 | gl_LIBOBJS += @LIBOBJS@ | ||
40 | gl_LTLIBOBJS += @LTLIBOBJS@ | ||
41 | 41 | ||
42 | 42 | ... | ... |
... | @@ -25,9 +25,9 @@ imap4d/signal.c | ... | @@ -25,9 +25,9 @@ imap4d/signal.c |
25 | imap4d/starttls.c | 25 | imap4d/starttls.c |
26 | imap4d/util.c | 26 | imap4d/util.c |
27 | 27 | ||
28 | lib/argp-help.c | 28 | lib/gnu/argp-help.c |
29 | lib/argp-parse.c | 29 | lib/gnu/argp-parse.c |
30 | lib/getopt.c | 30 | lib/gnu/getopt.c |
31 | lib/mailcap.c | 31 | lib/mailcap.c |
32 | lib/tcpwrap.c | 32 | lib/tcpwrap.c |
33 | lib/strexit.c | 33 | lib/strexit.c | ... | ... |
-
Please register or sign in to post a comment