From 794b1c657cb6f7ad30e2a6d7757068736dc0b14f Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sun, 27 Jun 2010 12:15:56 +0200 Subject: [PATCH] Allow documented environment variables in autoconf It might be useful to write something like sdkflags=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=sdkdir xorg-server` in configure.ac macros. Unfortunately, this will be blocked because 'PKG_CONFIG_SYSROOT' is a forbidden m4 pattern. This patch extends the list of allowed pattern by the names of documented pkg-config environment variables. --- pkg.m4 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/pkg.m4 b/pkg.m4 index 9bb3e06..7c18f6b 100644 --- a/pkg.m4 +++ b/pkg.m4 @@ -26,7 +26,8 @@ # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) -- 1.7.0.1