waf: Add autoconf --target support.
authorAndreas Schneider <asn@samba.org>
Thu, 15 Mar 2012 16:04:00 +0000 (17:04 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 21 Mar 2012 10:54:01 +0000 (11:54 +0100)
This is needed on some platforms so that you can set it and it is not
automagically transformed into --targets. The --target option is
normally set by the RPM %configure macro.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Mar 21 11:54:02 CET 2012 on sn-devel-104

buildtools/wafsamba/wscript

index 094f9cc5b4b30f7401c6c61479080c1764b23288..49d21078c47aa5759266a58b1536736b4637dc17 100755 (executable)
@@ -156,6 +156,9 @@ def set_options(opt):
     opt.add_option('--host',
                   help=SUPPRESS_HELP,
                   action='store', dest='AUTOCONF_HOST', default='')
+    opt.add_option('--target',
+                  help=SUPPRESS_HELP,
+                  action='store', dest='AUTOCONF_TARGET', default='')
     opt.add_option('--program-prefix',
                   help=SUPPRESS_HELP,
                   action='store', dest='AUTOCONF_PROGRAM_PREFIX', default='')