Alexandre Julliard : aclocal:
Add macros for logging messages about missing features.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jul 10 09:35:44 CDT 2007
Module: wine
Branch: master
Commit: 8d8c5c60a6c46ef193f140d4bf02ecba502e4d11
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d8c5c60a6c46ef193f140d4bf02ecba502e4d11
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jul 10 15:05:40 2007 +0200
aclocal: Add macros for logging messages about missing features.
---
aclocal.m4 | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/aclocal.m4 b/aclocal.m4
index ff071f5..1799ff0 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -153,6 +153,37 @@ dnl
AC_DEFUN([WINE_CONFIG_EXTRA_DIR],
[AC_CONFIG_COMMANDS([$1],[test -d "$1" || (AC_MSG_NOTICE([creating $1]) && mkdir "$1")])])
+dnl **** Add a message to the list displayed at the end ****
+dnl
+dnl Usage: WINE_NOTICE(notice)
+dnl Usage: WINE_NOTICE_IF(test, notice)
+dnl Usage: WINE_WARNING(warning)
+dnl Usage: WINE_WARNING_IF(test, warning)
+dnl Usage: WINE_PRINT_MESSAGES
+dnl
+AC_DEFUN([WINE_NOTICE],[wine_notices="$wine_notices|$1"])
+AC_DEFUN([WINE_NOTICE_IF],[AS_IF([$1],[WINE_NOTICE([$2],[$3])])])
+AC_DEFUN([WINE_WARNING],[wine_warnings="$wine_warnings|$1"])
+AC_DEFUN([WINE_WARNING_IF],[AS_IF([$1],[WINE_WARNING([$2],[$3])])])
+
+AC_DEFUN([WINE_PRINT_MESSAGES],[ac_save_IFS="$IFS"
+IFS="|"
+if test "$verbose" = "yes"; then
+ for msg in $wine_notices; do
+ if test -n "$msg"; then
+ echo >&2
+ AC_MSG_NOTICE([$msg])
+ fi
+ done
+fi
+for msg in $wine_warnings; do
+ if test -n "$msg"; then
+ echo >&2
+ AC_MSG_WARN([$msg])
+ fi
+done
+IFS="$ac_save_IFS"])
+
dnl Local Variables:
dnl compile-command: "autoreconf --warnings=all"
dnl End:
More information about the wine-cvs
mailing list