s4 echo_server: Enable prefork process model
[Samba.git] / examples / winexe / wscript
blob6b311b1da41537cf6b997381b36031bc4eaf0c6a
1 #!/usr/bin/env python
3 def configure(conf):
4 AR32 = ['i386', 'i586', 'i686']
5 AR64 = ['x86_64', 'amd64']
6 TC = ['mingw32', 'mingw32msvc', 'w64-mingw32']
8 found = False
10 for a in AR32:
11 for t in TC:
12 if conf.find_program(a + '-' + t + '-gcc', var='WINEXE_CC_WIN32'):
13 found = True
14 break
15 if found:
16 conf.DEFINE('HAVE_WINEXE_CC_WIN32', 1);
17 break
19 found = False
21 for a in AR64:
22 for t in TC:
23 if conf.find_program(a + '-' + t + '-gcc', var='WINEXE_CC_WIN64'):
24 found = True
25 break
26 if found:
27 conf.DEFINE('HAVE_WINEXE_CC_WIN64', 1);
28 break
30 conf.DEFINE("WINEXE_LDFLAGS",
31 "-s -Wall -Wl,-Bstatic -Wl,-Bdynamic -luserenv")