summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2021-03-30 09:39:00 +1300
committerAndrew Bartlett <abartlet@samba.org>2021-04-28 03:43:34 +0000
commite45980ff5de27b4558e7dfe0ce4c7af39d9c8b6b (patch)
treef9e5ae8a89d15f4ce54e50c3bce951d873070fdf /wscript
parentc2c09113e5598ae87dcf470cb85aaf1a62d03ba4 (diff)
downloadsamba-e45980ff5de27b4558e7dfe0ce4c7af39d9c8b6b.tar.gz
build: Use bison at build time rather than lexyacc.sh to build the embedded heimdal
Because the filenames are changed to the *.tab.{h,c} format a transitional header is added. While the built compilers differ, the output of the compilers and the resulting .o files have been verified not to have changed on Ubuntu 20.04. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/wscript b/wscript
index dc547b44aa4..f928b16a298 100644
--- a/wscript
+++ b/wscript
@@ -11,6 +11,7 @@ sys.path.insert(0, top+"/buildtools/wafsamba")
import shutil
import wafsamba, samba_dist, samba_git, samba_version, samba_utils
from waflib import Options, Scripting, Logs, Context, Errors
+from waflib.Tools import bison
samba_dist.DIST_DIRS('.')
samba_dist.DIST_BLACKLIST('.gitignore .bzrignore source4/selftest/provisions')
@@ -245,6 +246,17 @@ def configure(conf):
# #line statements in these generated files cause issues for lcov
conf.env.FLEXFLAGS += ["--noline"]
+ Logs.info("Checking for bison")
+ bison.configure(conf)
+ if conf.env['BISON']:
+ conf.CHECK_COMMAND('%s --version | head -n1' % conf.env.BISON[0],
+ msg='Using bison version',
+ define=None,
+ on_target=False)
+
+ # #line statements in these generated files cause issues for lcov
+ conf.env.BISONFLAGS += ["--no-line"]
+
if Options.options.with_system_mitkrb5:
if not Options.options.with_experimental_mit_ad_dc and \
not Options.options.without_ad_dc: