Alexandre Julliard : configure: Add a compatibility macro for AS_VAR_IF.

Alexandre Julliard julliard at winehq.org
Wed May 19 10:34:15 CDT 2010


Module: wine
Branch: master
Commit: 4ddfba41af1dbff3eecbaf3def938e151be58e68
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4ddfba41af1dbff3eecbaf3def938e151be58e68

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed May 19 11:52:47 2010 +0200

configure: Add a compatibility macro for AS_VAR_IF.

---

 configure.ac |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 46dca8e..1e5ac7c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,9 +11,14 @@ AC_CONFIG_SRCDIR(server/atom.c)
 AC_CONFIG_HEADERS(include/config.h)
 AC_CONFIG_AUX_DIR(tools)
 
-dnl autoconf versions before 2.63b don't have AS_VAR_APPEND
+dnl autoconf versions before 2.63b don't have AS_VAR_APPEND or AS_VAR_IF
 m4_ifdef([AS_VAR_APPEND],,[as_fn_append () { eval $[1]=\$$[1]\$[2]; }
 AC_DEFUN([AS_VAR_APPEND],[as_fn_append $1 $2])])dnl
+m4_ifdef([AS_VAR_IF],,[AC_DEFUN([AS_VAR_IF],
+[AS_LITERAL_IF([$1],
+  [AS_IF([test "x$$1" = x""$2], [$3], [$4])],
+  [eval as_val=\$$1
+   AS_IF([test "x$as_val" = x""$2], [$3], [$4])])])])dnl
 
 dnl **** Command-line arguments ****
 




More information about the wine-cvs mailing list