aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2005-12-18 15:28:52 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2005-12-18 15:28:52 +0100
commit00f434f7854d593b8a204724281ec4c794d0098c (patch)
tree4ea741066e1e3feb77db10082dce97c0f28efeb6 /configure
parent578d627c65491cba8ac6a0bb0f2d05147bf87535 (diff)
parent32c632fb46e58043a2d437c44cad783a59b7aea9 (diff)
Stuff from Jelmer.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 10 insertions, 6 deletions
diff --git a/configure b/configure
index 097fc0f5..d5ad1c56 100755
--- a/configure
+++ b/configure
@@ -144,10 +144,14 @@ else
exit 1;
fi
-if type pkg-config > /dev/null 2>/dev/null && pkg-config glib-2.0; then
+if [ -z "$PKG_CONFIG" ]; then
+ PKG_CONFIG=pkg-config
+fi
+
+if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
cat<<EOF>>Makefile.settings
-EFLAGS+=`pkg-config --libs glib-2.0 gmodule-2.0`
-CFLAGS+=`pkg-config --cflags glib-2.0 gmodule-2.0`
+EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
+CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
EOF
echo '#define GLIB2' >> config.h
elif type glib-config > /dev/null 2> /dev/null; then
@@ -189,10 +193,10 @@ EOF
detect_nss()
{
- if type pkg-config > /dev/null 2>/dev/null && pkg-config mozilla-nss; then
+ if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG mozilla-nss; then
cat<<EOF>>Makefile.settings
-EFLAGS+=`pkg-config --libs mozilla-nss`
-CFLAGS+=`pkg-config --cflags mozilla-nss`
+EFLAGS+=`$PKG_CONFIG --libs mozilla-nss`
+CFLAGS+=`$PKG_CONFIG --cflags mozilla-nss`
EOF
ssl=nss