changeset 12438:c1d8fb31c1ad

configure: Use PKG_PROG_PKG_CONFIG to find pkg-config binary.
author Timo Sirainen <tss@iki.fi>
date Wed, 17 Nov 2010 18:21:46 +0000
parents e7299f187938
children 84eb4afebc95
files configure.in
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Wed Nov 17 18:10:46 2010 +0000
+++ b/configure.in	Wed Nov 17 18:21:46 2010 +0000
@@ -5,6 +5,7 @@
 AM_INIT_AUTOMAKE([foreign])
 
 AM_MAINTAINER_MODE
+PKG_PROG_PKG_CONFIG
 
 ACLOCAL_AMFLAGS='-I $(top_srcdir)'
 AC_SUBST(ACLOCAL_AMFLAGS)
@@ -1662,7 +1663,7 @@
 have_ssl=no
 
 if test $want_openssl != no && test $have_ssl = no; then
-  if pkg-config --exists openssl 2>/dev/null; then
+  if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists openssl 2>/dev/null; then
     PKG_CHECK_MODULES(SSL, openssl)
     CFLAGS="$CFLAGS $SSL_CFLAGS"
     have_openssl=yes