aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2007-05-22 19:03:30 +0000
committerVincent Richard <[email protected]>2007-05-22 19:03:30 +0000
commitc8bb57fd93f4a779317f1722ebb3c2db58c911e5 (patch)
tree08c26344dba6b05e7e00e83087756103b4cf6d32
parentFixed bug #1656547: segfault in urlUtils::decode() if the string ends with '%'. (diff)
downloadvmime-c8bb57fd93f4a779317f1722ebb3c2db58c911e5.tar.gz
vmime-c8bb57fd93f4a779317f1722ebb3c2db58c911e5.zip
Fail if GNU TLS or GNU SASL dev packages are required but not installed.
-rw-r--r--SConstruct13
1 files changed, 12 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 5d4e4fb0..b5020601 100644
--- a/SConstruct
+++ b/SConstruct
@@ -614,13 +614,24 @@ else:
#env.Append(LIBS = ['additional-lib-here'])
if env['with_sasl'] == 'yes':
- env.ParseConfig('pkg-config --cflags --libs libgsasl')
+ libgsasl_pc = string.strip(os.popen("pkg-config --list-all | grep '^libgsasl[ ]' | cut -f 1 -d ' '").read())
+
+ if len(libgsasl_pc) == 0:
+ print "ERROR: GNU SASL development package is not installed\n"
+ Exit(1)
+
+ env.ParseConfig('pkg-config --cflags --libs ' + libgsasl_pc)
if env['with_tls'] == 'yes':
libgnutls_pc = string.strip(os.popen("pkg-config --list-all | grep '^libgnutls[ ]' | cut -f 1 -d ' '").read())
+
if len(libgnutls_pc) == 0:
libgnutls_pc = string.strip(os.popen("pkg-config --list-all | grep '^gnutls[ ]' | cut -f 1 -d ' '").read())
+ if len(libgnutls_pc) == 0:
+ print "ERROR: GNU TLS development package is not installed\n"
+ Exit(1)
+
env.ParseConfig('pkg-config --cflags --libs ' + libgnutls_pc)
# Generate help text for command line options