From: Andrew Tridgell Date: Fri, 7 May 2010 07:00:53 +0000 (+0200) Subject: build: treat a blank --build or --host as not a cross-compile X-Git-Tag: samba-3.6.0pre1~2188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=815fcfba48ecf2596d989c646cd59c305b0d38ef;p=thirdparty%2Fsamba.git build: treat a blank --build or --host as not a cross-compile This matches autoconf behaviour --- diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index c8872eb7955..56f2e60a5be 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -178,7 +178,9 @@ def configure(conf): conf.env.AUTOCONF_HOST = Options.options.AUTOCONF_HOST conf.env.AUTOCONF_PROGRAM_PREFIX = Options.options.AUTOCONF_PROGRAM_PREFIX - if conf.env.AUTOCONF_BUILD != conf.env.AUTOCONF_HOST: + if (conf.env.AUTOCONF_HOST and + conf.env.AUTOCONF_BUILD and + conf.env.AUTOCONF_BUILD != conf.env.AUTOCONF_HOST): Logs.error('ERROR: Mismatch between --build and --host. Please use --cross-compile instead') sys.exit(1) if conf.env.AUTOCONF_PROGRAM_PREFIX: