Fixed action-if-false
Showing
1 changed file
with
3 additions
and
7 deletions
1 | dnl This file is part of GNU mailutils. | 1 | dnl This file is part of GNU mailutils. |
2 | dnl Copyright (C) 2001 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002 Free Software Foundation, Inc. |
3 | dnl | 3 | dnl |
4 | dnl This program is free software; you can redistribute it and/or modify | 4 | dnl This program is free software; you can redistribute it and/or modify |
5 | dnl it under the terms of the GNU General Public License as published by | 5 | dnl it under the terms of the GNU General Public License as published by |
... | @@ -20,10 +20,8 @@ dnl MU_ENABLE_SUPPORT(feature, [action-if-true], [action-if-false]) | ... | @@ -20,10 +20,8 @@ dnl MU_ENABLE_SUPPORT(feature, [action-if-true], [action-if-false]) |
20 | 20 | ||
21 | AC_DEFUN([MU_ENABLE_SUPPORT], [ | 21 | AC_DEFUN([MU_ENABLE_SUPPORT], [ |
22 | pushdef([mu_upcase],translit($1,[a-z],[A-Z])) | 22 | pushdef([mu_upcase],translit($1,[a-z],[A-Z])) |
23 | pushdef([mu_build_files],mu_upcase[_BUILD_FILES]) | ||
24 | pushdef([mu_cache_var],[mu_cv_enable_]$1) | 23 | pushdef([mu_cache_var],[mu_cv_enable_]$1) |
25 | AC_SUBST(mu_build_files) | 24 | |
26 | ifelse([$2],,,AC_SUBST(mu_build_dirs)) | ||
27 | AC_ARG_ENABLE($1, | 25 | AC_ARG_ENABLE($1, |
28 | [ --disable-]$1[ disable ]$1[ support], | 26 | [ --disable-]$1[ disable ]$1[ support], |
29 | [case "${enableval}" in | 27 | [case "${enableval}" in |
... | @@ -35,14 +33,12 @@ AC_DEFUN([MU_ENABLE_SUPPORT], [ | ... | @@ -35,14 +33,12 @@ AC_DEFUN([MU_ENABLE_SUPPORT], [ |
35 | 33 | ||
36 | if test x"[$]mu_cache_var" = x"yes"; then | 34 | if test x"[$]mu_cache_var" = x"yes"; then |
37 | AC_DEFINE([ENABLE_]mu_upcase,1,[Define this if you enable $1 support]) | 35 | AC_DEFINE([ENABLE_]mu_upcase,1,[Define this if you enable $1 support]) |
38 | mu_build_files='[$(]mu_upcase[_FILES)]' | ||
39 | ifelse([$2],,,$2) | 36 | ifelse([$2],,,$2) |
40 | ifelse([$3],,,else | 37 | ifelse([$3],,,else |
41 | $2) | 38 | $3) |
42 | fi | 39 | fi |
43 | 40 | ||
44 | popdef([mu_upcase]) | 41 | popdef([mu_upcase]) |
45 | popdef([mu_build_files]) | ||
46 | popdef([mu_cache_var]) | 42 | popdef([mu_cache_var]) |
47 | ]) | 43 | ]) |
48 | 44 | ... | ... |
-
Please register or sign in to post a comment