aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-01-04 12:16:18 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-01-04 12:16:18 +0000
commite08e53c9398700309000c6e6b7ff895185d567a9 (patch)
tree0f9b545f37fed519fcd82748de1b6f602814ae36 /configure
parenta19ea7a21e082d0e28aea7198bea0f3bd3e2eb4f (diff)
Fixed build system: Run pkg-config at configure-time instead of just failing
mysteriously at build time if libpurple-dev is missing.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure b/configure
index a87b3697..b7f9a464 100755
--- a/configure
+++ b/configure
@@ -452,8 +452,16 @@ protoobjs=''
if [ "$purple" = 0 ]; then
echo '#undef WITH_PURPLE' >> config.h
else
+ if ! $PKG_CONFIG purple; then
+ echo
+ echo 'Cannot find libpurple development libraries, aborting. (Install libpurple-dev?)'
+ exit 1
+ fi
echo '#define WITH_PURPLE' >> config.h
- echo 'EFLAGS += $$(pkg-config purple --libs)' >> Makefile.settings
+ cat<<EOF>>Makefile.settings
+EFLAGS += $($PKG_CONFIG purple --libs)
+PURPLE_CFLAGS += $($PKG_CONFIG purple --cflags)
+EOF
protocols=$protocols'purple '
protoobjs=$protoobjs'purple_mod.o '