From a35c0694b172023eaee4760a6eed74400b7ae95e Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Fri, 30 Apr 2010 12:38:38 +0000 Subject: [PATCH] Use pkg-conf --static if static build requested. git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@206 36d66b0a-2a48-0410-832c-cd162a569da5 --- configure.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.in b/configure.in index 13b6bb9..e8ecb8b 100644 --- a/configure.in +++ b/configure.in @@ -81,6 +81,10 @@ AC_ARG_ENABLE([udev],AS_HELP_STRING([--disable-udev],[disable udev support]),[], dnl Try to use pkg-config for devmapper, but fallback to old detection saved_LIBS=$LIBS if AC_RUN_LOG([pkg-config --exists --print-errors devmapper]); then + PKG_PROG_PKG_CONFIG + if test x$enable_static = xyes; then + PKG_CONFIG="$PKG_CONFIG --static" + fi PKG_CHECK_MODULES([DEVMAPPER], [devmapper >= 1.02.03]) LIBS="$LIBS $DEVMAPPER_LIBS" else -- 2.7.4