summaryrefslogtreecommitdiff
path: root/m4/mu_libobj.m4
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-10-06 13:11:04 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-10-06 13:11:04 +0000
commitfc4b1c937aba8d1c8a999f654a6641adce4188c4 (patch)
treeac9310379c6f32a655cc638e0245d76d2a83705a /m4/mu_libobj.m4
parentf59d09cc69728588efda9d1fc4a0d472ed55be75 (diff)
downloadmailutils-fc4b1c937aba8d1c8a999f654a6641adce4188c4.tar.gz
mailutils-fc4b1c937aba8d1c8a999f654a6641adce4188c4.tar.bz2
(MU_HEADER): Prevent multiple inclusions.
Diffstat (limited to 'm4/mu_libobj.m4')
-rw-r--r--m4/mu_libobj.m413
1 files changed, 11 insertions, 2 deletions
diff --git a/m4/mu_libobj.m4 b/m4/mu_libobj.m4
index 4999f5c39..90030dbeb 100644
--- a/m4/mu_libobj.m4
+++ b/m4/mu_libobj.m4
@@ -32,8 +32,17 @@ AC_DEFUN(MU_CHECK_FUNCS,[
AC_SUBST(GNU_INCLS)
AC_DEFUN(MU_HEADER,[
- mu_header_list="$mu_header_list include/mailutils/gnu/$1:headers/$1"
- GNU_INCLS="$GNU_INCLS $1"
+ pushdef([mu_upcase],translit($1,[a-z-],[A-Z_]))
+ pushdef([mu_cache_var],[mu_cv_header_]translit($1,[-./],[___]))
+
+ if test x"[$]mu_cache_var" != xyes; then
+ mu_header_list="$mu_header_list include/mailutils/gnu/$1:headers/$1"
+ GNU_INCLS="$GNU_INCLS $1"
+ mu_cache_var=yes
+ fi
+
+ popdef([mu_upcase])
+ popdef([mu_cache_var])
])
AC_DEFUN(MU_FINISH_LINKS,[

Return to:

Send suggestions and report system problems to the System administrator.