Module: wine Branch: master Commit: 4ddfba41af1dbff3eecbaf3def938e151be58e68 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ddfba41af1dbff3eecbaf3def...
Author: Alexandre Julliard julliard@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 ****