changeset 23817:ca84259411d3

Use --static flag for pkg-config if --enable-static was used.
author reimar
date Fri, 20 Jul 2007 21:57:59 +0000
parents f1a98937d141
children 9e0142e0c121
files configure
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Jul 20 21:29:44 2007 +0000
+++ b/configure	Fri Jul 20 21:57:59 2007 +0000
@@ -3543,6 +3543,9 @@
 echocheck "pkg-config"
 _pkg_config=pkg-config
 if `$_pkg_config --version > /dev/null 2>&1`; then
+  if test "$_ld_static"; then
+    _pkg_config="$_pkg_config --static"
+  fi
   echores "yes"
 else
   _pkg_config=false