Skip to content

Commit

Permalink
Workaround Fedora autoconf-2.13 issue in compileShell as per issue #9.
Browse files Browse the repository at this point in the history
  • Loading branch information
nth10sd committed Jul 10, 2015
1 parent 72a9811 commit eafec98
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/compileShell.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,14 @@ def autoconfRun(cwDir):
if sps.isProgramInstalled('brew') else 'autoconf213'
subprocess.check_call([autoconf213MacBin], cwd=cwDir)
elif sps.isLinux:
subprocess.check_call(['autoconf2.13'], cwd=cwDir)
# FIXME: We should use a method that is similar to the client.mk one, as per
# https://github.com/MozillaSecurity/funfuzz/issues/9
try:
# Ubuntu
subprocess.check_call(['autoconf2.13'], cwd=cwDir)
except OSError:
# Fedora has a different name
subprocess.check_call(['autoconf-2.13'], cwd=cwDir)
elif sps.isWin:
# Windows needs to call sh to be able to find autoconf.
subprocess.check_call(['sh', 'autoconf-2.13'], cwd=cwDir)
Expand Down

0 comments on commit eafec98

Please sign in to comment.