Commit b1ffdf58 b1ffdf58b4b65dd7b6caf5a3ef8cec8bb67ae1f0 by Sergey Poznyakoff

Use MU_LIBOBJS on functions needed for libmailbox.

Add mailutils.scm to GUILE_PKGDATA.
1 parent 7961b2ad
...@@ -242,26 +242,28 @@ AH_BOTTOM([ ...@@ -242,26 +242,28 @@ AH_BOTTOM([
242 extern char *strtok_r (char *s, const char *delim, char **save_ptr); 242 extern char *strtok_r (char *s, const char *delim, char **save_ptr);
243 #endif]) 243 #endif])
244 244
245 AC_REPLACE_FUNCS(fgetpwent getpass setenv snprintf strtok_r strncasecmp \ 245 AC_REPLACE_FUNCS(fgetpwent getpass setenv snprintf strncasecmp \
246 strcasecmp strsignal vasprintf strndup strnlen strchrnul) 246 strcasecmp strsignal vasprintf)
247 AC_CHECK_FUNCS(mkstemp sigaction sysconf getdelim vsyslog setreuid \ 247 AC_CHECK_FUNCS(mkstemp sigaction sysconf getdelim vsyslog setreuid \
248 setresuid seteuid vfork _exit) 248 setresuid seteuid vfork _exit)
249 249
250 MU_CHECK_FUNCS(strtok_r getline strndup strnlen strchrnul)
251
250 ## Check for presence of utmp.h and utmp-related functions 252 ## Check for presence of utmp.h and utmp-related functions
251 MU_CHECK_UTMP 253 MU_CHECK_UTMP
252 254
253 dnl Check for libraries 255 dnl Check for libraries
254 AC_CHECK_FUNCS(argp_parse, :, 256 AC_CHECK_FUNCS(argp_parse, :,
255 [ 257 [
256 AC_LIBOBJ(argp-ba) 258 MU_LIBOBJ(argp-ba)
257 AC_LIBOBJ(argp-eexst) 259 MU_LIBOBJ(argp-eexst)
258 AC_LIBOBJ(argp-fmtstream) 260 MU_LIBOBJ(argp-fmtstream)
259 AC_LIBOBJ(argp-fs-xinl) 261 MU_LIBOBJ(argp-fs-xinl)
260 AC_LIBOBJ(argp-help) 262 MU_LIBOBJ(argp-help)
261 AC_LIBOBJ(argp-parse) 263 MU_LIBOBJ(argp-parse)
262 AC_LIBOBJ(argp-pv) 264 MU_LIBOBJ(argp-pv)
263 AC_LIBOBJ(argp-pvh) 265 MU_LIBOBJ(argp-pvh)
264 AC_LIBOBJ(argp-xinl) 266 MU_LIBOBJ(argp-xinl)
265 ]) 267 ])
266 268
267 AC_MSG_CHECKING(whether extern program_invocation_name is present) 269 AC_MSG_CHECKING(whether extern program_invocation_name is present)
...@@ -461,7 +463,7 @@ AC_SUBST(GUILE_SNARF_VERSION) ...@@ -461,7 +463,7 @@ AC_SUBST(GUILE_SNARF_VERSION)
461 AC_SUBST(GUIMB) 463 AC_SUBST(GUIMB)
462 AC_SUBST(MU_SCM) 464 AC_SUBST(MU_SCM)
463 AC_SUBST(LIBMU_SCM) 465 AC_SUBST(LIBMU_SCM)
464 AC_SUBST(GUILE_PROCEDURES_TXT) 466 AC_SUBST(GUILE_PKGDATA)
465 AC_SUBST(GUILE_BUILT_SOURCES) 467 AC_SUBST(GUILE_BUILT_SOURCES)
466 468
467 if test x"$useguile" = x"yes"; then 469 if test x"$useguile" = x"yes"; then
...@@ -470,9 +472,9 @@ if test x"$useguile" = x"yes"; then ...@@ -470,9 +472,9 @@ if test x"$useguile" = x"yes"; then
470 GUILE_INCLUDES=`guile-config compile` 472 GUILE_INCLUDES=`guile-config compile`
471 GUILE_LIBS=`guile-config link` 473 GUILE_LIBS=`guile-config link`
472 GUIMB=guimb 474 GUIMB=guimb
473 MU_SCM=libmu_scm.a 475 MU_SCM=libmu_scm.la
474 LIBMU_SCM=../libmu_scm/libmu_scm.a 476 LIBMU_SCM=../libmu_scm/libmu_scm.la
475 GUILE_PROCEDURES_TXT=guile-procedures.txt 477 GUILE_PKGDATA="guile-procedures.txt mailutils.scm"
476 GUILE_BUILT_SOURCES='$(DOT_X_FILES) $(DOT_DOC_FILES)' 478 GUILE_BUILT_SOURCES='$(DOT_X_FILES) $(DOT_DOC_FILES)'
477 case "$GUILE_VERSION" in 479 case "$GUILE_VERSION" in
478 14) GUILE_SNARF_VERSION="1.4";; 480 14) GUILE_SNARF_VERSION="1.4";;
...@@ -497,6 +499,12 @@ LTLIBOBJS=`echo "$LIB@&t@OBJS" | ...@@ -497,6 +499,12 @@ LTLIBOBJS=`echo "$LIB@&t@OBJS" |
497 sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'` 499 sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
498 AC_SUBST(LTLIBOBJS) 500 AC_SUBST(LTLIBOBJS)
499 501
502 S=`echo "$MU_LIBOBJS" |
503 sed 's,\.[[^.]]* ,$U&,g;s,\.[[^.]]*$,$U&,'`
504 MU_LTLIBOBJS=`echo "$S" |
505 sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
506 AC_SUBST(MU_LTLIBOBJS)
507
500 dnl Output Makefiles 508 dnl Output Makefiles
501 AC_CONFIG_FILES([Makefile mailutils.spec 509 AC_CONFIG_FILES([Makefile mailutils.spec
502 include/Makefile include/mailutils/Makefile 510 include/Makefile include/mailutils/Makefile
......