16a06cae88
ok aja@ landry@ would agree
31 lines
1.6 KiB
Plaintext
31 lines
1.6 KiB
Plaintext
$OpenBSD: patch-wscript,v 1.2 2011/09/12 18:23:26 jasper Exp $
|
|
--- wscript.orig Mon Sep 12 19:49:58 2011
|
|
+++ wscript Mon Sep 12 19:51:06 2011
|
|
@@ -186,13 +186,13 @@ def configure (conf):
|
|
'{ char* a;\nvasprintf(&a, "%s", ""); return 0; }', \
|
|
define_name='HAVE_VASPRINTF', msg='Checking for function vasprintf', \
|
|
mandatory=True)
|
|
- check_function ('socket', 'sys/socket.h')
|
|
- if conf.env['DEST_OS'] == 'freebsd':
|
|
+ check_function ('socket', ['sys/types.h', 'sys/socket.h'])
|
|
+ if conf.env['DEST_OS'] == 'openbsd':
|
|
check_function ('inet_ntoa', 'arpa/inet.h')
|
|
check_function ('dlopen', 'dlfcn.h')
|
|
conf.check(function_name='db_create', header_name='db.h',
|
|
- includes=['/usr/local/include/db42'],
|
|
- libpath=['/usr/local/lib/db42'], lib='db', mandatory=False)
|
|
+ includes=['${LOCALBASE}/include/db4'],
|
|
+ libpath=['${LOCALBASE}/lib/db4'], lib='db', mandatory=False)
|
|
else:
|
|
check_function ('inet_ntoa', 'arpa/inet.h', 'nsl')
|
|
check_function ('dlopen', 'dlfcn.h', 'dl')
|
|
@@ -202,7 +202,7 @@ def configure (conf):
|
|
sys.exit (1)
|
|
check_pkg ('openssl')
|
|
check_function ('CRYPTO_lock', 'openssl/crypto.h', 'crypto')
|
|
- check_function ('SSL_connect', 'openssl/ssl.h', 'ssl', 'HAVE_LIBSSL')
|
|
+ check_function ('SSL_connect', 'openssl/ssl.h', ['ssl', 'crypto'], 'HAVE_LIBSSL')
|
|
conf.find_program ('msmtp', mandatory=True)
|
|
if not conf.find_program ('dexter'):
|
|
Utils.pprint ('YELLOW', 'Dexter is not installed. It is recommended ' \
|