AX_SUBMODULE: set PKG_CONFIG_PATH
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 20 Sep 2009 16:09:43 +0000 (18:09 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 20 Sep 2009 16:09:43 +0000 (18:09 +0200)
m4/ax_submodule.m4

index 17e357f..637b4a9 100644 (file)
@@ -35,6 +35,9 @@ if test "x$with_$1_builddir" != "x"; then
        $1_srcdir=`echo @abs_srcdir@ | $with_$1_builddir/config.status --file=-`
        AC_MSG_NOTICE($1 sources in $$1_srcdir)
 fi
+if test "x$with_$1_exec_prefix" != "x"; then
+       export PKG_CONFIG_PATH="$with_$1_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}"
+fi
 case "$with_$1" in
 $2)
        ;;